Skip to content

Commit

Permalink
failing test for single dash preceeding a double dash
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Sep 12, 2013
1 parent f117e6d commit b465514
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@ test('-', function (t) {
{ s: '-', _: [] }
);
});

test('-a -- b', function (t) {
t.plan(3);
t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] });
t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
});

0 comments on commit b465514

Please sign in to comment.