Skip to content

Commit

Permalink
tests: add test that --bool==false is checking aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn committed Mar 19, 2023
1 parent 061569b commit 3ee1187
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/bool.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,16 @@ test('boolean using something similar to true', function (t) {
t.same(result, expected);
t.end();
});

test('boolean and alias --boool=false', function (t) {
var parsed = parse(['--boool=false'], {
default: {
b: true,
},
alias: { b: 'boool' },
boolean: ['b'],
});

t.same(parsed.boool, false);
t.end();
});

0 comments on commit 3ee1187

Please sign in to comment.