Skip to content

Commit

Permalink
test: add invalid key decoding test for parse
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Sep 9, 2022
1 parent ef9be7f commit 0f8f864
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ test("should accept pairs with missing values", () => {
});

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

Expand Down

0 comments on commit 0f8f864

Please sign in to comment.