Skip to content
Snippets Groups Projects
Commit 3955f862 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

Add istanbul

parent 733ea77d
No related branches found
No related tags found
No related merge requests found
/node_modules /node_modules
/config.js /config.js
/npm-debug.log /npm-debug.log
/coverage
...@@ -39,8 +39,9 @@ function setNewValue(currentFileContent, depType, depName, newVersion) { ...@@ -39,8 +39,9 @@ function setNewValue(currentFileContent, depType, depName, newVersion) {
} }
} }
} }
// istanbul ignore if
if (!newFileContent) { if (!newFileContent) {
throw new Error('Could not find old version'); throw new Error('Could not set new value');
} }
return newFileContent; return newFileContent;
} }
......
...@@ -4,9 +4,10 @@ ...@@ -4,9 +4,10 @@
"version": "1.1.2", "version": "1.1.2",
"main": "app/index.js", "main": "app/index.js",
"scripts": { "scripts": {
"lint": "eslint .", "lint": "eslint app",
"lint-fix": "eslint app --fix",
"start": "node app", "start": "node app",
"test": "mocha --recursive --reporter spec" "test": "istanbul cover _mocha test/**/*"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
...@@ -41,6 +42,7 @@ ...@@ -41,6 +42,7 @@
"eslint-config-airbnb-base": "11.0.1", "eslint-config-airbnb-base": "11.0.1",
"eslint-plugin-import": "2.2.0", "eslint-plugin-import": "2.2.0",
"eslint-plugin-promise": "3.4.0", "eslint-plugin-promise": "3.4.0",
"istanbul": "0.4.5",
"mocha": "3.2.0" "mocha": "3.2.0"
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment