Add support for the microsoft distribution.

This commit is contained in:
Brendan Burns 2021-12-07 13:22:34 -08:00
parent 3d55049ca8
commit c3cb155fbc
7 changed files with 23371 additions and 26244 deletions

View file

@ -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 */
);
});
});