Skip to content

Commit

Permalink
test: add mixed ascii test
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Feb 4, 2023
1 parent faf9dd9 commit a4fc792
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/stringify.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ test("should handle numbers", () => {
);
});

test("should handle mixed ascii and non-ascii", () => {
assert.deepEqual(qs.stringify({ name: "Jöhn Doe" }), "name=J%C3%B6hn%20Doe");
});

test("should handle BigInt", () => {
assert.deepEqual(
qs.stringify({ age: BigInt(55), name: "John" }),
Expand Down

0 comments on commit a4fc792

Please sign in to comment.