Skip to content

Commit dbab86d

Browse files
committed
test(MongoBinaryDownloadUrl): add test for fedora 40
1 parent 194df6f commit dbab86d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,23 @@ describe('MongoBinaryDownloadUrl', () => {
12561256
);
12571257
});
12581258

1259+
it('should return a archive name for Fedora 40', async () => {
1260+
const du = new MongoBinaryDownloadUrl({
1261+
platform: 'linux',
1262+
arch: 'x64',
1263+
version: '7.0.14',
1264+
os: {
1265+
os: 'linux',
1266+
dist: 'fedora',
1267+
release: '40',
1268+
},
1269+
});
1270+
1271+
expect(await du.getDownloadUrl()).toBe(
1272+
'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel8-7.0.14.tgz'
1273+
);
1274+
});
1275+
12591276
it('fedora 36 & 7.0.13 x86_64', async () => {
12601277
const du = new MongoBinaryDownloadUrl({
12611278
platform: 'linux',

0 commit comments

Comments
 (0)