Skip to content

Commit 307cff9

Browse files
test: expect URL-encoded commas to be treated as literal characters
Escaped commas (%2C) are intentionally not used as separators (see affd158). Align the test with that behavior.
1 parent 2421d75 commit 307cff9

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/query-string.test.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,9 @@ describe('parseQueryString', () => {
3636
);
3737
});
3838

39-
test('handles URL-encoded commas (%2C)', () => {
39+
test('treats URL-encoded commas (%2C) as literal, not as separators', () => {
4040
const result = parseQueryString('backgroundColor=000000%2Cffffff');
41-
assert.deepEqual(
42-
result,
43-
expected({ backgroundColor: ['000000', 'ffffff'] }),
44-
);
41+
assert.deepEqual(result, expected({ backgroundColor: ['000000,ffffff'] }));
4542
});
4643

4744
test('keeps seed with commas as string (not array)', () => {

0 commit comments

Comments
 (0)