Set the coverage npm script to use current specs

The coverage script was introduced in 5c147b8d91,
and the spec files were moved in c3ef232bf7.

Also, correct a small typo.
This commit is contained in:
Thaddee Tyl
2017-04-28 16:39:17 -04:00
committed by Paul Melnikow
parent a086dca4de
commit e17c15c00b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -36,7 +36,7 @@
"xml2js": "~0.4.16"
},
"scripts": {
"coverage:test:js": "istanbul cover _mocha 'test/**/*.spec.js' --dir coverage/js",
"coverage:test:js": "istanbul cover _mocha '*.spec.js' 'lib/*.spec.js' --dir coverage/js",
"coverage:test:services": "istanbul cover _mocha --delay service-tests/runner/cli.js --dir coverage/services",
"coverage:test": "npm run coverage:test:js && npm run coverage:test:services",
"coverage:report": "istanbul report",
+1 -1
View File
@@ -97,6 +97,6 @@ if (prOption !== undefined) {
}
runner.toss();
// Invoke run() asynchronously, beacuse Mocha will not start otherwise.
// Invoke run() asynchronously, because Mocha will not start otherwise.
process.nextTick(run);
}