From 6abb5f1449b582f50796c71bbf20d8e4aac2f4de Mon Sep 17 00:00:00 2001 From: Simon Fondrie-Teitler Date: Thu, 18 May 2017 23:20:16 -0400 Subject: [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. --- ui/package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ui/package.json') 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" } } -- cgit v1.2.3