Skip to content

Commit db09d86

Browse files
committed
test: add multi-byte tests to stringify
1 parent b893058 commit db09d86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/stringify.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ test("should omit objects", () => {
4848
test("should omit non-object inputs", () => {
4949
assert.deepEqual(qs.stringify("hello" as any), "");
5050
});
51+
52+
test("should handle multi-byte characters", () => {
53+
assert.deepEqual(qs.stringify({ multiByte: "𝌆" }), "multiByte=%F0%9D%8C%86");
54+
});

0 commit comments

Comments
 (0)