Skip to content

Commit

Permalink
add addl $.parse tests — space delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Feb 7, 2018
1 parent c764aa2 commit 991558d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ test('utils.parse', t => {
['--foo, -f', ['foo', 'f']],
['--foo-bar, -f', ['foo-bar', 'f']],
[' -f , --foo ', ['f', 'foo']],
[' --foo-bar , -f ', ['foo-bar', 'f']]
[' --foo-bar , -f ', ['foo-bar', 'f']],
['-f --foo', ['f', 'foo']],
['--foo -f', ['foo', 'f']],
['--foo-bar -f', ['foo-bar', 'f']],
].forEach(arr => {
t.same($.parse(arr[0]), arr[1], `(${arr[0]}) ~~> [${arr[1]}]`);
});
Expand Down

0 comments on commit 991558d

Please sign in to comment.