File tree 3 files changed +44
-3
lines changed
3 files changed +44
-3
lines changed Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change 4
4
*
5
5
* */
6
6
7
- import test , * as TST from '@typescriptlibs/tst' ;
7
+ import test , { Tester } from '@typescriptlibs/tst' ;
8
8
9
9
/* *
10
10
*
@@ -13,8 +13,8 @@ import test, * as TST from '@typescriptlibs/tst';
13
13
* */
14
14
15
15
test ( 'Tester tests' , function ( assert : test . Assert ) {
16
- assert (
17
- typeof TST . Tester === 'function' ,
16
+ assert . ok (
17
+ typeof Tester === 'function' ,
18
18
'Tester should be a class constructor.'
19
19
) ;
20
20
} ) ;
You can’t perform that action at this time.
0 commit comments