diff --git a/Makefile b/Makefile index 3fe93bb..16f6c6f 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ test-node: node_modules --reporter $(REPORTER) \ $(TESTS) -test-cov: lib-cov +test-cov: @CHAI_COV=1 NODE_ENV=test ./node_modules/.bin/mocha \ --require ./test/bootstrap \ --reporter html-cov \ @@ -67,14 +67,6 @@ test-travisci: lib-cov @make test-node @make test-sauce -# -# Coverage -# - -lib-cov: - @rm -rf lib-cov - @./node_modules/jscoverage/bin/jscoverage lib lib-cov - # # Clean up # diff --git a/package.json b/package.json index e6b8d8f..442ba76 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ }, "devDependencies": { "component": "*" - , "jscoverage": "0.3.7" , "karma": "canary" , "karma-mocha": "*" , "karma-sauce-launcher": "git://github.com/embarkmobile/karma-sauce-launcher.git#feature-passfail" diff --git a/test/bootstrap/index.js b/test/bootstrap/index.js index 9daee0b..0c998f4 100644 --- a/test/bootstrap/index.js +++ b/test/bootstrap/index.js @@ -2,9 +2,7 @@ * Attach chai to global */ -global.chai = (process && process.env && process.env.CHAI_COV) - ? require('../../lib-cov/chai') - : require('../..'); +global.chai = require('../..'); /*! * Provide check for fail function.