[Pkg-javascript-commits] [node-coveralls] 141/332: Fix tests again

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:53:52 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 80aa1a56b21edd95080c8472b847c5abcbe1fa53
Author: Gerard Escalante <gerard at ns2.saygo.ca>
Date:   Wed Feb 12 05:47:34 2014 +0000

    Fix tests again
    
    Make sure to add "fix" to all places where process.env is wiped clear, because of some node 0.8 oddity
---
 test/getOptions.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/getOptions.js b/test/getOptions.js
index fc33012..76691a3 100644
--- a/test/getOptions.js
+++ b/test/getOptions.js
@@ -5,7 +5,7 @@ var getBaseOptions = index.getBaseOptions;
 
 describe("getBaseOptions", function(){
   beforeEach(function(){
-    process.env = {};
+    process.env = {PATH: process.env.PATH};
   });
   it ("should set service_job_id if it exists", function(done){
     testServiceJobId(getBaseOptions, done);
@@ -53,7 +53,7 @@ describe("getBaseOptions", function(){
 
 describe("getOptions", function(){
   beforeEach(function(){
-    process.env = {};
+    process.env = {PATH: process.env.PATH};
   });
   it ("should require a callback", function(done) {
     (function() {

-- 
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