From 0aba5286824d653f95a6454de0fbf91d4a5410b8 Mon Sep 17 00:00:00 2001 From: Brandon Lo Date: Thu, 11 Jul 2019 09:49:11 -0400 Subject: LAAS-44: Unit Test Javascript Add Karma, Mocha, and Chai NPM packages to allow for browser based front-end JavaScript testing. Not all functions are tested, but a lot of the required behavior is. This allows for new JS unit tests in future patches. Change-Id: I2ac2a865ed3a458d8f5ebdeb7c2b4defda24fd41 Signed-off-by: Brandon Lo --- tests/package.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/package.json (limited to 'tests/package.json') diff --git a/tests/package.json b/tests/package.json new file mode 100644 index 0000000..9584860 --- /dev/null +++ b/tests/package.json @@ -0,0 +1,16 @@ +{ + "scripts": { + "test": "./node_modules/karma/bin/karma start" + }, + "dependencies": { + "chai": "^4.2.0", + "karma": "^4.1.0", + "karma-chai": "^0.1.0", + "mocha": "^6.1.4" + }, + "devDependencies": { + "karma-chrome-launcher": "^2.2.0", + "karma-firefox-launcher": "^1.1.0", + "karma-mocha": "^1.3.0" + } +} -- cgit 1.2.3-korg