Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

using more explicit ENV var for JSCov

  • Loading branch information...
commit 936c869596713c689e902af8960f4f92e3f6cc1b 1 parent 18c58d7
@BryanDonovan BryanDonovan authored
Showing with 3 additions and 4 deletions.
  1. +1 −1  Makefile
  2. +1 −1  index.js
  3. +0 −1  lib/easy_pool.js
  4. +1 −1  test/common.js
View
2  Makefile
@@ -8,7 +8,7 @@ test:
./node_modules/.bin/mocha
test-cov: lib-cov
- JSCOV=1 ./node_modules/.bin/mocha --reporter html-cov > coverage.html && echo 'coverage saved to coverage.html'
+ EASY_MYSQL_JSCOV=1 ./node_modules/.bin/mocha --reporter html-cov > coverage.html && echo 'coverage saved to coverage.html'
lib-cov:
@rm -fr ./$@
View
2  index.js
@@ -1,4 +1,4 @@
-if (process.env.JSCOV) {
+if (process.env.EASY_MYSQL_JSCOV) {
module.exports = require("./lib-cov/easy_mysql");
} else {
module.exports = require("./lib/easy_mysql");
View
1  lib/easy_pool.js
@@ -1,5 +1,4 @@
var pool_module = require('generic-pool');
-var path = require('path');
var mysql = require('mysql');
/** @ignore */
View
2  test/common.js
@@ -3,7 +3,7 @@ var mysql = require('mysql');
var assert = require('assert');
var lib_dir = 'lib';
-if (process.env.JSCOV) {
+if (process.env.EASY_MYSQL_JSCOV) {
lib_dir = 'lib-cov';
}
Please sign in to comment.
Something went wrong with that request. Please try again.