This commit is contained in:
qhy040404 2022-09-09 09:47:37 +08:00
parent d854b6da19
commit d0bb48b8b8
No known key found for this signature in database
GPG key ID: B1E14E493E9BB96C
9 changed files with 8895 additions and 8895 deletions

View file

@ -144,8 +144,8 @@ describe('getAvailableVersions', () => {
});
});
const mockPlatform = (distributon: CorrettoDistribution, platform: string) => {
distributon['getPlatformOption'] = () => platform;
const mockPlatform = (distribution: CorrettoDistribution, platform: string) => {
distribution['getPlatformOption'] = () => platform;
const mockedExtension = platform === 'windows' ? 'zip' : 'tar.gz';
spyGetDownloadArchiveExtension.mockReturnValue(mockedExtension);
};