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';
|
||||
});
|
||||
|
||||
jest
|
||||
.spyOn(util, 'renameWinArchive')
|
||||
.mockImplementation((archivePath: string) => `${archivePath}.zip`);
|
||||
|
||||
spyVerifySignature = jest.spyOn(gpg, 'verifyPackageSignature');
|
||||
spyVerifySignature.mockImplementation(async () => {});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user