Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
bee7c85
Add Support for JetBrains Runtime
gmitch215 Jun 5, 2024
07ea605
Add Docs + Distro Factory
gmitch215 Jun 5, 2024
db1c6fa
Fix Runtime Unrecognizable
gmitch215 Jun 19, 2024
7f3ab26
`npm run build` (JBR)
gmitch215 Jun 19, 2024
c192e7b
Fix Incorrect JBR Distribution
gmitch215 Jun 19, 2024
99fc213
Switch to `jbrsdk_jcef`
gmitch215 Jun 19, 2024
4f206ba
Fix Incorrect File Extension
gmitch215 Jun 19, 2024
ab5c653
`npm run build` (JBR)
gmitch215 Jun 19, 2024
e1f4c15
Fix Windows Support
gmitch215 Jun 19, 2024
3653181
Merge branch 'actions:main' into main
gmitch215 Jun 30, 2024
b4d76a3
Add `GITHUB_TOKEN` Authentication
gmitch215 Jul 9, 2024
6d2c5e1
Update Authorization, Add Documentation
gmitch215 Jul 9, 2024
d3a91fa
Resolve Merge Conflicts
gmitch215 Sep 11, 2024
cba808d
Resolve Merge Conflicts
gmitch215 Sep 23, 2024
28233e2
Merge branch 'actions:main' into main
gmitch215 Oct 1, 2024
53d9f2a
Fix PR Issues
gmitch215 Oct 14, 2024
3419d2f
Change Distribution to \`jbrsdk\`
gmitch215 Oct 19, 2024
a137832
Don't Replace Underscores
gmitch215 Oct 19, 2024
34a32f8
Fix `semver` not resolving correctly
gmitch215 Nov 5, 2024
515257f
Update e2e-versions.yml
gmitch215 Nov 5, 2024
4caaa52
`npm run format`
gmitch215 Nov 7, 2024
4776457
Fix Format, Inaccessible URLs
gmitch215 Nov 7, 2024
7264910
Update Tests
gmitch215 Nov 9, 2024
8e2bc8f
Fix Broken URLs, Add Additional Package Types
gmitch215 Nov 9, 2024
7e3fee9
`npm run build`
gmitch215 Nov 9, 2024
4e56c31
Fix JetBrains Tests, Issues in `e2e-versions.yml`
gmitch215 Nov 11, 2024
3935436
Add Hidden JDK 11 Versions
gmitch215 Nov 28, 2024
847079d
Update `jetbrains-installer` Tests
gmitch215 Nov 28, 2024
bd0d2b8
Add Notices in Documentation
gmitch215 Nov 28, 2024
fb0f337
Fix Documentation
gmitch215 Dec 5, 2024
19d961a
Run `npm audit fix`
gmitch215 Dec 5, 2024
35c79ae
Fix Tests on Windows
gmitch215 Dec 9, 2024
051967d
Merge branch 'actions:main' into main
gmitch215 Dec 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update jetbrains-installer Tests
  • Loading branch information
gmitch215 authored Nov 28, 2024
commit 847079da470030ff46837336afeed559be094dbe
25 changes: 7 additions & 18 deletions __tests__/distributors/jetbrains-installer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,11 @@ describe('getAvailableVersions', () => {

it('load available versions', async () => {
spyHttpClient = jest.spyOn(HttpClient.prototype, 'getJson');
spyHttpClient
.mockReturnValueOnce({
statusCode: 200,
headers: {},
result: manifestData as any
})
.mockReturnValueOnce({
statusCode: 200,
headers: {},
result: manifestData as any
})
.mockReturnValueOnce({
statusCode: 200,
headers: {},
result: []
});
spyHttpClient.mockReturnValueOnce({
statusCode: 200,
headers: {},
result: manifestData as any
});

const distribution = new JetBrainsDistribution({
version: '17',
Expand All @@ -53,8 +42,8 @@ describe('getAvailableVersions', () => {

const length =
os.platform() === 'win32'
? manifestData.length * 2 - 4
: manifestData.length * 2;
? manifestData.length - 2
: manifestData.length + 1;
expect(availableVersions.length).toBe(length);
}, 10_000);
});
Expand Down