Skip to content

Commit 8bcd234

Browse files
committed
test: add parse test for large numbers
1 parent 0f8f864 commit 8bcd234

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/parse.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,10 @@ test("should handle really large object", () => {
5454

5555
assert.strictEqual(Object.keys(qs.parse(url)).length, 2000);
5656
});
57+
58+
test("should parse large numbers", () => {
59+
assert.strictEqual(
60+
qs.parse("id=918854443121279438895193").id,
61+
"918854443121279438895193",
62+
);
63+
});

0 commit comments

Comments
 (0)