@@ -3,7 +3,7 @@ import * as http from 'http'
33import * as net from 'net'
44import * as path from 'path'
55import * as github from '@actions/github'
6- import { HttpClient , HttpClientResponse } from '@actions/http-client'
6+ import { HttpClient } from '@actions/http-client'
77import type { RestEndpointMethods } from '@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types'
88import archiver from 'archiver'
99
@@ -621,12 +621,10 @@ describe('download-artifact', () => {
621621 } )
622622 } )
623623 } )
624-
624+
625625 describe ( 'streamExtractExternal' , ( ) => {
626626 it ( 'should fail if the timeout is exceeded' , async ( ) => {
627-
628- const mockSlowGetArtifact = jest
629- . fn ( mockGetArtifactHung )
627+ const mockSlowGetArtifact = jest . fn ( mockGetArtifactHung )
630628
631629 const mockHttpClient = ( HttpClient as jest . Mock ) . mockImplementation (
632630 ( ) => {
@@ -640,10 +638,10 @@ describe('download-artifact', () => {
640638 await streamExtractExternal (
641639 fixtures . blobStorageUrl ,
642640 fixtures . workspaceDir ,
643- { timeout : 2 }
641+ { timeout : 2 }
644642 )
645643 expect ( true ) . toBe ( false ) // should not be called
646- } catch ( e : any ) {
644+ } catch ( e ) {
647645 expect ( e ) . toBeInstanceOf ( Error )
648646 expect ( e . message ) . toContain ( 'did not respond in 2ms' )
649647 expect ( mockHttpClient ) . toHaveBeenCalledWith ( getUserAgentString ( ) )
0 commit comments