Skip to content

Commit

Permalink
Merge branch 'rewrite-duplicate-test' of github.com:isbadawi/node-opt…
Browse files Browse the repository at this point in the history
…imist
  • Loading branch information
Alex Ford committed Nov 22, 2013
2 parents 9059d1a + 58798d8 commit 647d37f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,8 @@ test('mixed short bool and capture', function (t) {

test('short and long', function (t) {
t.same(
optimist.parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]),
{
f : true, p : 555, h : 'localhost',
_ : [ 'script.js' ], $0 : $0,
}
optimist.parse([ '-h', 'localhost', '--port', '555' ]),
{ h : 'localhost', port : 555, _ : [], $0 : $0 }
);
t.end();
});
Expand Down

0 comments on commit 647d37f

Please sign in to comment.