mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
tns test init
This commit is contained in:
@ -22,6 +22,7 @@
|
|||||||
"@angular/router": "~8.2.0",
|
"@angular/router": "~8.2.0",
|
||||||
"@nativescript/theme": "~2.2.0",
|
"@nativescript/theme": "~2.2.0",
|
||||||
"nativescript-angular": "~8.20.0",
|
"nativescript-angular": "~8.20.0",
|
||||||
|
"nativescript-unit-test-runner": "^0.7.0",
|
||||||
"reflect-metadata": "~0.1.12",
|
"reflect-metadata": "~0.1.12",
|
||||||
"rxjs": "^6.4.0",
|
"rxjs": "^6.4.0",
|
||||||
"tns-core-modules": "~6.2.0",
|
"tns-core-modules": "~6.2.0",
|
||||||
@ -30,6 +31,15 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/compiler-cli": "~8.2.0",
|
"@angular/compiler-cli": "~8.2.0",
|
||||||
"@ngtools/webpack": "~8.2.0",
|
"@ngtools/webpack": "~8.2.0",
|
||||||
|
"@types/karma-chai": "0.1.2",
|
||||||
|
"@types/mocha": "5.2.7",
|
||||||
|
"chai": "4.2.0",
|
||||||
|
"karma": "4.4.1",
|
||||||
|
"karma-chai": "0.1.0",
|
||||||
|
"karma-mocha": "1.3.0",
|
||||||
|
"karma-nativescript-launcher": "0.4.0",
|
||||||
|
"karma-webpack": "3.0.5",
|
||||||
|
"mocha": "6.2.2",
|
||||||
"nativescript-dev-webpack": "~1.3.0",
|
"nativescript-dev-webpack": "~1.3.0",
|
||||||
"typescript": "~3.5.3"
|
"typescript": "~3.5.3"
|
||||||
},
|
},
|
||||||
|
9
e2e/appTestNg/src/tests/example.ts
Normal file
9
e2e/appTestNg/src/tests/example.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
// A sample Mocha test
|
||||||
|
describe('Array', function () {
|
||||||
|
describe('#indexOf()', function () {
|
||||||
|
it('should return -1 when the value is not present', function () {
|
||||||
|
assert.equal(-1, [1, 2, 3].indexOf(5));
|
||||||
|
assert.equal(-1, [1, 2, 3].indexOf(0));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
Reference in New Issue
Block a user