summaryrefslogtreecommitdiff
path: root/ui/package.json
diff options
context:
space:
mode:
authorSimon Fondrie-Teitler <simonft@riseup.net>2017-05-18 23:20:16 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2017-05-22 13:46:44 +0200
commit6abb5f1449b582f50796c71bbf20d8e4aac2f4de (patch)
treeaa3fd693c58f228ee24eb973e99e9cbd08b9bf41 /ui/package.json
parenta8f8256c4f9671e4c971498835c443ccff8e9f5f (diff)
[refactor] refactor and add tests for Center and Confirmation
As a couple of initial, example tests, Center and Confirmation were refactored and tests were set up and added with mocha, enzyme and chai. Spinner was also refactored.
Diffstat (limited to 'ui/package.json')
-rw-r--r--ui/package.json8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/package.json b/ui/package.json
index ed99e955..4749b985 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -17,13 +17,16 @@
"babel-preset-react": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"bootstrap": "^3.3.7",
+ "chai": "^3.5.0",
+ "chai-enzyme": "^0.6.1",
"copy-webpack-plugin": "^3.0.1",
"css-loader": "^0.23.1",
"less": "^2.7.1",
"less-loader": "^2.2.3",
+ "mocha": "^3.4.1",
"react": "^15.3.2",
- "react-dom": "^15.3.2",
"react-bootstrap": "^0.30.5",
+ "react-dom": "^15.3.2",
"style-loader": "^0.13.1",
"webpack": "^1.13.1",
"zxcvbn": "^4.4.0"
@@ -32,6 +35,7 @@
"ui": "chromium-browser \"http://localhost:7070/#$(cat ~/.config/leap/authtoken)\"",
"watch": "NODE_ENV=development webpack --watch",
"build": "NODE_ENV=development webpack",
- "build:production": "NODE_ENV=production webpack"
+ "build:production": "NODE_ENV=production webpack",
+ "test": "mocha --compilers js:babel-core/register ./test/**/*.js"
}
}