Skip to content

Commit

Permalink
fix: test description
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm committed Sep 2, 2022
1 parent 662664d commit ee2bc06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/default-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ test('proto as default value must be ignored', (t) => {
});


test('multiple as false should expect a String and not an array', (t) => {
test('multiple as false should expect a String', (t) => {
const args = [];
const options = { alpha: { type: 'string', multiple: false, default: 42 } };
const options = { alpha: { type: 'string', multiple: false, default: ['array'] } };
t.throws(() => {
parseArgs({ args, options });
}, /alpha\.default must be String/
Expand Down

0 comments on commit ee2bc06

Please sign in to comment.