Skip to content

Commit

Permalink
test(MongoBinaryDownloadUrl): add tests for "translateArch" aside fro…
Browse files Browse the repository at this point in the history
…m "ia32"
  • Loading branch information
hasezoey committed Jan 6, 2023
1 parent 4af629c commit 5cf8b20
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1473,6 +1473,16 @@ describe('MongoBinaryDownloadUrl', () => {
expect(err.message).toMatchSnapshot();
}
});

it('should translate "x64" and "x86_64" to "x86_64"', () => {
expect(MongoBinaryDownloadUrl.translateArch('x64', 'linux')).toStrictEqual('x86_64');
expect(MongoBinaryDownloadUrl.translateArch('x86_64', 'linux')).toStrictEqual('x86_64');
});

it('should translate "arm64" and "aarch64" to "aarch64"', () => {
expect(MongoBinaryDownloadUrl.translateArch('arm64', 'linux')).toStrictEqual('aarch64');
expect(MongoBinaryDownloadUrl.translateArch('aarch64', 'linux')).toStrictEqual('aarch64');
});
});

describe('translatePlatform()', () => {
Expand Down

0 comments on commit 5cf8b20

Please sign in to comment.