diff options
author | Brandon Lo <lobrandon1217@gmail.com> | 2019-07-11 09:49:11 -0400 |
---|---|---|
committer | Brandon Lo <lobrandon1217@gmail.com> | 2019-07-16 11:39:24 -0400 |
commit | 0aba5286824d653f95a6454de0fbf91d4a5410b8 (patch) | |
tree | 4c5f49e916beba3a7b82a7e20a2650f62f98e60a /tests/package.json | |
parent | 69824a2839f8841c04d964ea341b4a8b1379aa51 (diff) |
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 <lobrandon1217@gmail.com>
Diffstat (limited to 'tests/package.json')
-rw-r--r-- | tests/package.json | 16 |
1 files changed, 16 insertions, 0 deletions
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" + } +} |