Skip to content

Commit

Permalink
added coverage npm run task
Browse files Browse the repository at this point in the history
  • Loading branch information
Søren Brokær committed Oct 20, 2015
1 parent 175295b commit edb674e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.idea
coverage
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const parseJson = require('parse-json');
const copypaste = require('copy-paste');
const cardinal = require('cardinal');

let parse = (content, cb) => {
try {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "cli that parses the current JSON you have in your current clipboard",
"main": "index.js",
"scripts": {
"test": "mocha"
"test": "mocha",
"test:coverage": "istanbul cover ./node_modules/.bin/_mocha"
},
"engines": {
"node": ">=0.10.0"
Expand Down Expand Up @@ -46,6 +47,7 @@
"update-notifier": "0.5.0"
},
"devDependencies": {
"istanbul": "0.4.0",
"mocha": "2.3.3",
"mock-stdin": "0.3.0"
}
Expand Down

0 comments on commit edb674e

Please sign in to comment.