[Pkg-javascript-commits] [node-coveralls] 243/332: Modify tests to use the minimist options object for filepath detection

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:54:06 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 c69ded1dd61fe371b32a6c45a7bafae1b79932fd
Author: Anna Henningsen <sqrt at entless.org>
Date:   Wed Apr 15 18:06:29 2015 +0200

    Modify tests to use the minimist options object for filepath detection
---
 test/getOptions.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/getOptions.js b/test/getOptions.js
index 0943fe1..897427c 100644
--- a/test/getOptions.js
+++ b/test/getOptions.js
@@ -70,7 +70,7 @@ describe("getOptions", function(){
     done();
   });
   it ("should get a filepath if there is one", function(done){
-    process.argv[2] = "somepath";
+    index.options._ = ["somepath"];
     getOptions(function(err, options){
       options.filepath.should.equal("somepath");
       done();
@@ -78,8 +78,8 @@ describe("getOptions", function(){
 
   });
   it ("should get a filepath if there is one, even in verbose mode", function(done){
-    process.argv[2] = "--verbose";
-    process.argv[3] = "somepath";
+    index.options.verbose = "true";
+    index.options._ = ["somepath"];
     getOptions(function(err, options){
       options.filepath.should.equal("somepath");
       done();

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