forked from RusticiSoftware/lrs-conformance-test-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspecConfig.js
More file actions
36 lines (28 loc) · 657 Bytes
/
specConfig.js
File metadata and controls
36 lines (28 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const specInfo = {
defaultVersion: "2.0.0",
availableVersions: [
"1.0.3",
"2.0.0"
],
specToFolder: {
"1.0.2": "v1_0_2",
"1.0.3": "v1_0_3",
"2": "v2_0",
"2.0": "v2_0",
"2.0.0": "v2_0",
},
/**
* Get a version from the given folder.
* @param {string} folder
*/
getSpecFromFolder(folder) {
if (folder.includes("v1_0_3"))
return "1.0.3";
if (folder.includes("v1_0_2"))
return "1.0.2";
if (folder.includes("v2_0"))
return "2.0.0";
return null;
}
}
module.exports = specInfo;