Update Tests

This commit is contained in:
Gregory Mitchell 2024-11-09 02:25:51 +00:00 committed by GitHub
parent 4776457db0
commit 72649109a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 848 additions and 187 deletions

File diff suppressed because it is too large Load diff

View file

@ -3,6 +3,7 @@ import {HttpClient} from '@actions/http-client';
import {JetBrainsDistribution} from '../../src/distributions/jetbrains/installer';
import manifestData from '../data/jetbrains.json';
import {fstat, writeFileSync} from 'fs';
describe('getAvailableVersions', () => {
let spyHttpClient: jest.SpyInstance;
@ -50,7 +51,7 @@ describe('getAvailableVersions', () => {
const availableVersions = await distribution['getAvailableVersions']();
expect(availableVersions).not.toBeNull();
expect(availableVersions.length).toBe(manifestData.length * 2);
});
}, 10_000);
});
describe('findPackageForDownload', () => {