Skip to content

Commit 4caa0bd

Browse files
committed
test(MongoBinaryDownloadUrl): add test for debian 10 for mongodb 4.2.1
1 parent bfb0ec4 commit 4caa0bd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,22 @@ describe('MongoBinaryDownloadUrl', () => {
173173
);
174174
});
175175

176+
it('for debian 10 for 4.2.1', async () => {
177+
const du = new MongoBinaryDownloadUrl({
178+
platform: 'linux',
179+
arch: 'x64',
180+
version: '4.2.1',
181+
os: {
182+
os: 'linux',
183+
dist: 'debian',
184+
release: '10',
185+
},
186+
});
187+
expect(await du.getDownloadUrl()).toBe(
188+
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian10-4.2.1.tgz'
189+
);
190+
});
191+
176192
it('should throw a Error when requesting a version below 4.2.1 for debian 10+ [#554] [KnownVersionIncompatibilityError]', async () => {
177193
const du = new MongoBinaryDownloadUrl({
178194
platform: 'linux',

0 commit comments

Comments
 (0)