mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 18:36:46 +00:00
Add support for the microsoft distribution.
This commit is contained in:
parent
3d55049ca8
commit
c3cb155fbc
7 changed files with 23371 additions and 26244 deletions
|
@ -31,8 +31,8 @@ describe('findPackageForDownload', () => {
|
|||
])('version is %s -> %s', async (input, expectedVersion, expectedUrl) => {
|
||||
const result = await distribution['findPackageForDownload'](input);
|
||||
expect(result.version).toBe(expectedVersion);
|
||||
var os: string;
|
||||
var archive: string;
|
||||
let os: string;
|
||||
let archive: string;
|
||||
switch (process.platform) {
|
||||
case 'darwin':
|
||||
os = 'macos';
|
||||
|
@ -53,7 +53,7 @@ describe('findPackageForDownload', () => {
|
|||
|
||||
it('should throw an error', async () => {
|
||||
await expect(distribution['findPackageForDownload']('8')).rejects.toThrow(
|
||||
/Could not find satisfied version for semver */
|
||||
/Could not find satisfied version for SemVer */
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue