Skip to content

Commit 88e1e36

Browse files
committed
Add failing test for #404
1 parent fbeefd6 commit 88e1e36

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/parse.js

+12
Original file line numberDiff line numberDiff line change
@@ -546,3 +546,15 @@ test('types option: all supported types work in conjunction with one another', t
546546
number: 20,
547547
});
548548
});
549+
550+
// https://github.com/sindresorhus/query-string/issues/404
551+
test.failing('types option: single element with `{arrayFormat: "comma"}`', t => {
552+
t.deepEqual(queryString.parse('a=b', {
553+
arrayFormat: 'comma',
554+
types: {
555+
a: 'string[]',
556+
},
557+
}), {
558+
a: ['b'],
559+
});
560+
});

0 commit comments

Comments
 (0)