aboutsummaryrefslogtreecommitdiff
path: root/test/fetchGitData.js
diff options
context:
space:
mode:
authorGerard Escalante <[email protected]>2014-02-12 12:49:46 +0900
committerGerard Escalante <[email protected]>2014-02-12 12:49:59 +0900
commit2a6c95a9acfcd8fdf5ce998408bb028996295908 (patch)
treed60028f8e051ee1b091f9382e8164382d279487d /test/fetchGitData.js
parent2275311f3a1b9125993686161d76aa54e087705b (diff)
downloadnode-coveralls-2a6c95a9acfcd8fdf5ce998408bb028996295908.tar.xz
node-coveralls-2a6c95a9acfcd8fdf5ce998408bb028996295908.zip
Fix fetchGitData tests
Restored process.env "cleanup", but make sure to preserve PATH so Windows doesn't freak out trying to find git
Diffstat (limited to 'test/fetchGitData.js')
-rw-r--r--test/fetchGitData.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/fetchGitData.js b/test/fetchGitData.js
index 3b8b0fe..cd0a679 100644
--- a/test/fetchGitData.js
+++ b/test/fetchGitData.js
@@ -3,6 +3,9 @@ var fetchGitData = require('../lib/fetchGitData');
var getOptions = require('../index').getOptions;
describe("fetchGitData", function(){
+ beforeEach(function(){
+ process.env = {PATH: process.env.PATH};
+ });
it("should throw an error when no data is passed", function() {
fetchGitData.should.throw(/fetchGitData requires a callback/);
});