Add test coverage

This commit is contained in:
nioc 2019-10-18 21:40:40 +02:00
parent 34fc742abb
commit 100d6bf643
3 changed files with 866 additions and 2 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
/node_modules/
/config.json
/*.log
/.nyc_output/
/coverage/

860
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -7,7 +7,8 @@
"dev": "nodemon server.js",
"start": "NODE_ENV=production node server.js",
"lint": "eslint .",
"test": "mocha"
"test": "mocha",
"cover": "nyc --reporter=html --reporter=text mocha"
},
"author": "nioc <dev@nioc.eu>",
"license": "AGPL-3.0-or-later",
@ -36,6 +37,7 @@
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"mocha": "^6.2.1",
"nodemon": "^1.19.3"
"nodemon": "^1.19.3",
"nyc": "^14.1.1"
}
}