Skip to content

Commit ee2bc06

Browse files
committed
fix: test description
1 parent 662664d commit ee2bc06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/default-values.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ test('proto as default value must be ignored', (t) => {
166166
});
167167

168168

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy