File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 22
22
"@angular/router" : " ~8.2.0" ,
23
23
"@nativescript/theme" : " ~2.2.0" ,
24
24
"nativescript-angular" : " ~8.20.0" ,
25
+ "nativescript-unit-test-runner" : " ^0.7.0" ,
25
26
"reflect-metadata" : " ~0.1.12" ,
26
27
"rxjs" : " ^6.4.0" ,
27
28
"tns-core-modules" : " ~6.2.0" ,
30
31
"devDependencies" : {
31
32
"@angular/compiler-cli" : " ~8.2.0" ,
32
33
"@ngtools/webpack" : " ~8.2.0" ,
34
+ "@types/karma-chai" : " 0.1.2" ,
35
+ "@types/mocha" : " 5.2.7" ,
36
+ "chai" : " 4.2.0" ,
37
+ "karma" : " 4.4.1" ,
38
+ "karma-chai" : " 0.1.0" ,
39
+ "karma-mocha" : " 1.3.0" ,
40
+ "karma-nativescript-launcher" : " 0.4.0" ,
41
+ "karma-webpack" : " 3.0.5" ,
42
+ "mocha" : " 6.2.2" ,
33
43
"nativescript-dev-webpack" : " ~1.3.0" ,
34
44
"typescript" : " ~3.5.3"
35
45
},
Original file line number Diff line number Diff line change
1
+ // A sample Mocha test
2
+ describe ( 'Array' , function ( ) {
3
+ describe ( '#indexOf()' , function ( ) {
4
+ it ( 'should return -1 when the value is not present' , function ( ) {
5
+ assert . equal ( - 1 , [ 1 , 2 , 3 ] . indexOf ( 5 ) ) ;
6
+ assert . equal ( - 1 , [ 1 , 2 , 3 ] . indexOf ( 0 ) ) ;
7
+ } ) ;
8
+ } ) ;
9
+ } ) ;
You can’t perform that action at this time.
0 commit comments