tns init test

This commit is contained in:
Vasil Chimev
2019-11-14 04:47:54 +02:00
parent 5ff8cd4dad
commit d99354cba3
2 changed files with 19 additions and 0 deletions

View 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));
});
});
});

View File

@@ -14,9 +14,19 @@
"repository": "<fill-your-repository-here>",
"dependencies": {
"@nativescript/theme": "~2.2.0",
"nativescript-unit-test-runner": "^0.7.0",
"tns-core-modules": "~6.2.0"
},
"devDependencies": {
"@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",
"typescript": "~3.5.3"
},