mirror of
https://github.com/actions/setup-java.git
synced 2026-07-08 14:21:50 +00:00
fix: mock renameWinArchive in microsoft-installer tests to fix Windows CI failure
This commit is contained in:
parent
e2b889947b
commit
730e373df5
@ -262,6 +262,10 @@ describe('downloadTool', () => {
|
|||||||
return '/tmp/cached';
|
return '/tmp/cached';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
jest
|
||||||
|
.spyOn(util, 'renameWinArchive')
|
||||||
|
.mockImplementation((archivePath: string) => `${archivePath}.zip`);
|
||||||
|
|
||||||
spyVerifySignature = jest.spyOn(gpg, 'verifyPackageSignature');
|
spyVerifySignature = jest.spyOn(gpg, 'verifyPackageSignature');
|
||||||
spyVerifySignature.mockImplementation(async () => {});
|
spyVerifySignature.mockImplementation(async () => {});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user