Skip to content

Commit bef7b08

Browse files
committed
test: add test for serialising duplicated keys
1 parent b8ec936 commit bef7b08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/client/serialize.js

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ describe('request.serializeObject()', () => {
3838
serialize({ '&name&': 'tj' }, '%26name%26=tj');
3939
serialize({ hello: '`test`' }, 'hello=%60test%60');
4040
serialize({ $hello: 'test' }, '$hello=test');
41+
serialize({ foo: 'foo', foo: 'bar' }, 'foo=foo&foo=bar');
4142
});
4243
});
4344

0 commit comments

Comments
 (0)