Skip to content

Commit 0f8f864

Browse files
committed
test: add invalid key decoding test for parse
1 parent ef9be7f commit 0f8f864

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/parse.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ test("should accept pairs with missing values", () => {
4141
});
4242

4343
test("should decode key", () => {
44+
assert.deepEqual(qs.parse("invalid%key=hello"), { "invalid%key": "hello" });
4445
assert.deepEqual(qs.parse("full%20name=Yagiz"), { "full name": "Yagiz" });
4546
});
4647

0 commit comments

Comments
 (0)