Add test coverage.

This commit is contained in:
David Braun 2017-12-06 14:30:53 -05:00
parent 9da406e58f
commit 4315a28f0c
4 changed files with 37 additions and 7 deletions

View file

@ -13,14 +13,11 @@
"dependencies": {},
"devDependencies": {
"@nodeguy/assert": "0.1.4",
"mocha": "4.0.1"
"mocha": "4.0.1",
"nyc": "11.3.0"
},
"homepage": "https://github.com/NodeGuy/channel",
"keywords": [
"CSP",
"channel",
"concurrency"
],
"keywords": ["CSP", "channel", "concurrency"],
"license": "Apache-2.0",
"main": "lib/index.js",
"repository": {
@ -28,6 +25,14 @@
"url": "git+https://github.com/NodeGuy/channel.git"
},
"scripts": {
"test": "mocha --recursive"
"test": "nyc mocha --recursive"
},
"nyc": {
"check-coverage": true,
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100,
"reporter": ["html", "text-summary"]
}
}