Skip to content

Commit

Permalink
[Tests] failing test for proper comma parsing of URL-encoded commas
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 25, 2020
1 parent cd9a3cd commit 08a86b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parse.js
Expand Up @@ -430,7 +430,7 @@ test('parse()', function (t) {
});

t.test('parses comma delimited array while having percent-encoded comma treated as normal text', function (st) {
st.deepEqual(qs.parse('foo=a%2Cb', { comma: true }), { foo: ['a', 'b'] });
st.deepEqual(qs.parse('foo=a%2Cb', { comma: true }), { foo: 'a,b' });
st.deepEqual(qs.parse('foo=a%2C%20b,d', { comma: true }), { foo: ['a, b', 'd'] });
st.deepEqual(qs.parse('foo=a%2C%20b,c%2C%20d', { comma: true }), { foo: ['a, b', 'c, d'] });

Expand Down

0 comments on commit 08a86b4

Please sign in to comment.