-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.js
54 lines (40 loc) · 1.11 KB
/
test.js
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import {
tagRegistryForReleaseName,
activeTagRegistry,
activateTagReleaseName,
activeTagReleaseName
} from './index.js';
console.log('starting');
let x = activeTagReleaseName()
console.log("activeReleaseName(): %s", x)
x = tagRegistryForReleaseName('2018a')
console.log("registryForRelease('2018a'): %s", x)
x = tagRegistryForReleaseName('current')
console.log("registryForRelease('current'): %s", x)
x = tagRegistryForReleaseName('cur' + 'rent')
console.log("registryForRelease('cur' + 'rent'): %s", x)
x = activeTagRegistry()
console.log("activeRegistry(): %s", x)
x = activeTagReleaseName()
console.log("activeReleaseName(): %s", x)
activateTagReleaseName('2017c')
console.log("tagActivateReleaseName('2017c')")
x = activeTagRegistry()
console.log("activeRegistry(): %s", x)
try {
activateTagReleaseName('foo')
} catch (e) {
console.log(e)
}
try {
x = tagRegistryForReleaseName('2019b')
console.log("2019b registry: %s", x)
} catch (e) {
console.log(e)
}
try {
x = tagRegistryForReleaseName('bar')
console.log("bar registry: %s", x);
} catch (e) {
console.log(e);
}