Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Olegas committed May 27, 2013
2 parents 748395f + 73e27e5 commit 9939fa4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
@@ -1 +1 @@
module.exports = require((process.env.COVER ? './lib-cov/' : './lib/') + 'mockfs.js');
module.exports = require((process.env.COVER == 'mockfs' ? './lib-cov/' : './lib/') + 'mockfs.js');
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -26,7 +26,7 @@
},
"scripts": {
"instrument": "node ./node_modules/.bin/istanbul instrument --output lib-cov --no-compact --variable global.__coverage__ lib",
"test-cov": "npm run-script instrument && COVER=1 ISTANBUL_REPORTERS=lcovonly node ./node_modules/.bin/mocha -R mocha-istanbul",
"test-cov": "npm run-script instrument && COVER=mockfs ISTANBUL_REPORTERS=lcovonly node ./node_modules/.bin/mocha -R mocha-istanbul",
"test": "node ./node_modules/mocha/bin/mocha -R spec"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion test/test-mockfs.js
@@ -1,7 +1,7 @@
var mfs = require('../'),
assert = require('assert'),
fs = require('fs'),
fdManager = require((process.env.COVER ? '../lib-cov/' : '../lib/') + 'fd-manager.js'),
fdManager = require((process.env.COVER == 'mockfs' ? '../lib-cov/' : '../lib/') + 'fd-manager.js'),
mounted;

describe("MockFS", function(){
Expand Down

0 comments on commit 9939fa4

Please sign in to comment.