mirror of
https://github.com/actions/setup-java.git
synced 2025-06-29 20:44:14 +00:00
adding different data files for each OS
This commit is contained in:
parent
e707d79108
commit
ff70a8950d
11 changed files with 1409 additions and 48 deletions
|
@ -132,7 +132,7 @@ describe('findPackageForDownload', () => {
|
|||
|
||||
const result = await distro['findPackageForDownload'](version);
|
||||
const expectedUrl = `https://aka.ms/download-jdk/microsoft-jdk-17.0.7-linux-${distroArch}.tar.gz`;
|
||||
|
||||
|
||||
expect(result.url).toBe(expectedUrl);
|
||||
}
|
||||
);
|
||||
|
@ -160,7 +160,7 @@ describe('findPackageForDownload', () => {
|
|||
expect(result.url).toBe(expectedUrl);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
it('should throw an error', async () => {
|
||||
await expect(distribution['findPackageForDownload']('8')).rejects.toThrow(
|
||||
/Could not find satisfied version for SemVer */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue