Skip to content

Commit

Permalink
[Tests] Fix bug
Browse files Browse the repository at this point in the history
For the comma to not be encoded we must either set `encode: false` or `encodeValuesOnly: true`
  • Loading branch information
adnan-creator authored and ljharb committed Nov 5, 2021
1 parent 0377251 commit a360d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/stringify.js
Expand Up @@ -105,7 +105,7 @@ test('stringify()', function (t) {
);
st.equal(
qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'comma' }),
'a=b,c,d',
'a=b%2Cc%2Cd',
'comma => comma'
);
st.equal(
Expand Down

0 comments on commit a360d76

Please sign in to comment.