Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 88e1e36

Browse filesBrowse files
committed
Add failing test for #404
1 parent fbeefd6 commit 88e1e36
Copy full SHA for 88e1e36

File tree

1 file changed

+12
-0
lines changed
Filter options

1 file changed

+12
-0
lines changed

‎test/parse.js

Copy file name to clipboardExpand all lines: test/parse.js
+12Lines changed: 12 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.