Skip to content

Commit 5cf8b20

Browse files
committed
test(MongoBinaryDownloadUrl): add tests for "translateArch" aside from "ia32"
1 parent 4af629c commit 5cf8b20

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts

+10
Original file line numberDiff line numberDiff line change
@@ -1473,6 +1473,16 @@ describe('MongoBinaryDownloadUrl', () => {
14731473
expect(err.message).toMatchSnapshot();
14741474
}
14751475
});
1476+
1477+
it('should translate "x64" and "x86_64" to "x86_64"', () => {
1478+
expect(MongoBinaryDownloadUrl.translateArch('x64', 'linux')).toStrictEqual('x86_64');
1479+
expect(MongoBinaryDownloadUrl.translateArch('x86_64', 'linux')).toStrictEqual('x86_64');
1480+
});
1481+
1482+
it('should translate "arm64" and "aarch64" to "aarch64"', () => {
1483+
expect(MongoBinaryDownloadUrl.translateArch('arm64', 'linux')).toStrictEqual('aarch64');
1484+
expect(MongoBinaryDownloadUrl.translateArch('aarch64', 'linux')).toStrictEqual('aarch64');
1485+
});
14761486
});
14771487

14781488
describe('translatePlatform()', () => {

0 commit comments

Comments
 (0)