Skip to content

Commit ccb99b0

Browse files
committed
Add more tests
1 parent 7e03086 commit ccb99b0

File tree

3 files changed

+44
-3
lines changed

3 files changed

+44
-3
lines changed

tst/CLI.ts

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* *
2+
*
3+
* Imports
4+
*
5+
* */
6+
7+
import test, { CLI, System } from '@typescriptlibs/tst';
8+
9+
/* *
10+
*
11+
* Tests
12+
*
13+
* */
14+
15+
test('CLI tests', function (assert: test.Assert) {
16+
assert.strictEqual(
17+
CLI.VERSION,
18+
`Version ${System.VERSION}`,
19+
'CLI.VERSION should end with System.VERSION.'
20+
);
21+
});

tst/System.ts

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/* *
2+
*
3+
* Imports
4+
*
5+
* */
6+
7+
import test, { System } from '@typescriptlibs/tst';
8+
9+
/* *
10+
*
11+
* Tests
12+
*
13+
* */
14+
15+
test('System tests', function (assert: test.Assert) {
16+
assert.ok(
17+
System.VERSION.match(/^\d+\.\d+\.\d+$/),
18+
'System.VERSION should be a version string.'
19+
);
20+
});

tst/Tester.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* */
66

7-
import test, * as TST from '@typescriptlibs/tst';
7+
import test, { Tester } from '@typescriptlibs/tst';
88

99
/* *
1010
*
@@ -13,8 +13,8 @@ import test, * as TST from '@typescriptlibs/tst';
1313
* */
1414

1515
test('Tester tests', function (assert: test.Assert) {
16-
assert(
17-
typeof TST.Tester === 'function',
16+
assert.ok(
17+
typeof Tester === 'function',
1818
'Tester should be a class constructor.'
1919
);
2020
});

0 commit comments

Comments
 (0)