We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66541de commit 3110cb4Copy full SHA for 3110cb4
packages/mongodb-memory-server-core/src/util/getos/__tests__/getos.test.ts
@@ -28,6 +28,21 @@ DISTRIB_DESCRIPTION="Linux Mint 20.1 Ulyssa"`;
28
codename: 'ulyssa',
29
});
30
31
+
32
+ it('should parse to UNKNOWN for different formats', () => {
33
+ // output taken from "elementary/docker:fe08f970723a" at "/etc/upstream-release/lsb-release"
34
+ const example = `ID=Ubuntu
35
+VERSION_ID=20.04
36
+VERSION_CODENAME=focal
37
+PRETTY_NAME="Ubuntu 20.04.5 LTS"`;
38
39
+ expect(getos.parseLSB(example)).toEqual<getos.LinuxOS>({
40
+ os: 'linux',
41
+ dist: getos.UNKNOWN,
42
+ release: '',
43
+ codename: undefined,
44
+ });
45
46
47
48
describe('parseOS', () => {
0 commit comments