use blanket for coverage, inline instrumentation ftw
This commit is contained in:
Родитель
ca3ffc6c00
Коммит
664d61a284
|
@ -1,5 +1,4 @@
|
|||
/node_modules
|
||||
*~
|
||||
npm-debug.log
|
||||
/lib-cov
|
||||
/coverage.html
|
||||
|
|
7
index.js
7
index.js
|
@ -1,7 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
module.exports = process.env.BROWSERID_LOCAL_VERIFY_COV
|
||||
? require('./lib-cov/browserid-local-verify')
|
||||
: require('./lib/browserid-local-verify');
|
|
@ -9,6 +9,7 @@
|
|||
"engines": {
|
||||
"node": ">=0.8.0"
|
||||
},
|
||||
"main": "lib/browserid-local-verify",
|
||||
"dependencies": {
|
||||
"jwcrypto": "git://github.com/mozilla/jwcrypto#8e3037a",
|
||||
"async": "0.2.9",
|
||||
|
@ -23,11 +24,14 @@
|
|||
"jshint": "2.3.0",
|
||||
"walk": "2.2.1",
|
||||
"temp": "0.5.1",
|
||||
"jscoverage": "0.3.8"
|
||||
"blanket": "1.1.5"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha -R spec tests/*.js",
|
||||
"cover": "rm -rf lib-cov && node_modules/.bin/jscoverage lib lib-cov && BROWSERID_LOCAL_VERIFY_COV=true mocha -R html-cov tests/*.js > coverage.html "
|
||||
"coverage": "mocha --require blanket -R html-cov tests/*.js > coverage.html ",
|
||||
"blanket": {
|
||||
"pattern": "browserid-local-verify/lib"
|
||||
}
|
||||
},
|
||||
"bin": {
|
||||
"browserid-lookup": "./bin/browserid-lookup.js"
|
||||
|
|
|
@ -26,7 +26,6 @@ describe('source code syntax', function() {
|
|||
});
|
||||
|
||||
var filesToLint = [
|
||||
path.join(__dirname, '../index.js')
|
||||
];
|
||||
|
||||
it('we should be able to discover files to lint', function(done) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче