aboutsummaryrefslogtreecommitdiff
path: root/test/getOptions.js
diff options
context:
space:
mode:
authorAnna Henningsen <[email protected]>2015-04-15 18:06:29 +0200
committerAnna Henningsen <[email protected]>2015-12-10 22:15:39 +0100
commitc69ded1dd61fe371b32a6c45a7bafae1b79932fd (patch)
tree53a56a6d1d561068aee3c3510cd896c49b832e74 /test/getOptions.js
parenta67629c9de3395c353903effa000effd01458050 (diff)
downloadnode-coveralls-c69ded1dd61fe371b32a6c45a7bafae1b79932fd.tar.xz
node-coveralls-c69ded1dd61fe371b32a6c45a7bafae1b79932fd.zip
Modify tests to use the minimist options object for filepath detection
Diffstat (limited to 'test/getOptions.js')
-rw-r--r--test/getOptions.js6
1 files 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();