Added unit tests for "parser.js" and "util.js"

This commit is contained in:
euvl
2017-08-07 16:07:57 +01:00
parent 72f5222e4b
commit 0089717a8c
10 changed files with 186 additions and 7 deletions

View File

@@ -19,18 +19,37 @@
},
"scripts": {
"build:client": "webpack --config ./build/webpack.client.config.js --progress --hide-modules",
"build:server": "webpack --config ./build/webpack.server.config.js --progress --hide-modules"
"build:server": "webpack --config ./build/webpack.server.config.js --progress --hide-modules",
"unit": "karma start test/unit/karma.conf.js",
"build": "npm run unit && npm run build:client && npm run build:server"
},
"license": "MIT",
"devDependencies": {
"babel-core": "^6.25.0",
"babel-loader": "latest",
"babel-preset-env": "^1.5.2",
"chai": "^3.5.0",
"cross-env": "^3.0.0",
"css-loader": "^0.25.0",
"file-loader": "^0.9.0",
"jasmine-core": "^2.7.0",
"karma": "^1.4.1",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.1",
"karma-mocha": "^1.3.0",
"karma-phantomjs-launcher": "^1.0.4",
"karma-phantomjs-shim": "^1.4.0",
"karma-sinon-chai": "^1.3.1",
"karma-sourcemap-loader": "^0.3.7",
"karma-spec-reporter": "0.0.31",
"karma-webpack": "^2.0.2",
"lolex": "^1.5.2",
"mocha": "^3.2.0",
"node-sass": "^4.5.0",
"phantomjs-prebuilt": "^2.1.14",
"sass-loader": "^5.0.1",
"sinon": "^2.1.0",
"sinon-chai": "^2.8.0",
"uglifyjs-webpack-plugin": "^0.4.6",
"vue": "^2.2.6",
"vue-hot-reload-api": "^2.0.8",