[Pkg-javascript-commits] [node-coveralls] 139/332: Fix fetchGitData tests

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:53:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-coveralls.

commit 2a6c95a9acfcd8fdf5ce998408bb028996295908
Author: Gerard Escalante <gerard at saygo.ca>
Date:   Wed Feb 12 12:49:46 2014 +0900

    Fix fetchGitData tests
    
    Restored process.env "cleanup", but make sure to preserve PATH so
    Windows doesn't freak out trying to find git
---
 test/fetchGitData.js | 3 +++
 1 file changed, 3 insertions(+)

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/);
   });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git



More information about the Pkg-javascript-commits mailing list