aboutsummaryrefslogtreecommitdiff
path: root/test/getOptions.js
blob: e8e3c7a1ac382b1d4409feb7c0c6d625123b8c7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var should = require('should');
var getOptions = require('../index').getOptions;

describe("getOptions", function(){
  it ("should get a filepath if there is one", function(){
    process.argv[2] = "somepath";
    getOptions().filepath.should.equal("somepath");
  
  });
  it ("should get a filepath if there is one, even in verbose mode", function(){
    process.argv[2] = "--verbose";
    process.argv[3] = "somepath";
    getOptions().filepath.should.equal("somepath");
  
  });

});