@@ -22,7 +22,7 @@ let setFailedMock: jest.SpiedFunction<typeof core.setFailed>
2222let setOutputMock : jest . SpiedFunction < typeof core . setOutput >
2323
2424let downloadToolMock : jest . SpiedFunction < typeof tc . downloadTool >
25- let extract7z : jest . SpiedFunction < typeof tc . extract7z >
25+ let extractZipMock : jest . SpiedFunction < typeof tc . extractZip >
2626
2727describe ( 'action' , ( ) => {
2828 beforeEach ( ( ) => {
@@ -38,10 +38,10 @@ describe('action', () => {
3838 setOutputMock = jest . spyOn ( core , 'setOutput' ) . mockImplementation ( )
3939
4040 downloadToolMock = jest . spyOn ( tc , 'downloadTool' ) . mockImplementation ( )
41- extract7z = jest . spyOn ( tc , 'extract7z ' ) . mockImplementation ( )
41+ extractZipMock = jest . spyOn ( tc , 'extractZip ' ) . mockImplementation ( )
4242
43- downloadToolMock . mockImplementation ( async ( ) => 'path/to/sdk.7z ' )
44- extract7z . mockImplementation ( async ( ) => 'path/to/sdk' )
43+ downloadToolMock . mockImplementation ( async ( ) => 'path/to/sdk.zip ' )
44+ extractZipMock . mockImplementation ( async ( ) => 'path/to/sdk' )
4545 } )
4646
4747 it ( 'downloads the nightly artifacts' , async ( ) => {
@@ -74,7 +74,7 @@ describe('action', () => {
7474 )
7575 expect ( setOutputMock ) . toHaveBeenNthCalledWith (
7676 2 ,
77- expect . stringContaining ( '_nightly' ) ,
77+ 'path' ,
7878 expect . stringContaining ( 'sdk' )
7979 )
8080 expect ( errorMock ) . not . toHaveBeenCalled ( )
0 commit comments