From d99354cba305e756139097b5b94f24d0ff6704dd Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Thu, 14 Nov 2019 04:47:54 +0200 Subject: [PATCH] tns init test --- e2e/appTestTs/app/tests/example.ts | 9 +++++++++ e2e/appTestTs/package.json | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 e2e/appTestTs/app/tests/example.ts diff --git a/e2e/appTestTs/app/tests/example.ts b/e2e/appTestTs/app/tests/example.ts new file mode 100644 index 000000000..a287a2eba --- /dev/null +++ b/e2e/appTestTs/app/tests/example.ts @@ -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)); + }); + }); +}); diff --git a/e2e/appTestTs/package.json b/e2e/appTestTs/package.json index 68927ea3b..d6591378d 100644 --- a/e2e/appTestTs/package.json +++ b/e2e/appTestTs/package.json @@ -14,9 +14,19 @@ "repository": "", "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" },