Skip to content

Commit

Permalink
test: add parse test for large numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Sep 9, 2022
1 parent 0f8f864 commit 8bcd234
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/parse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,10 @@ test("should handle really large object", () => {

assert.strictEqual(Object.keys(qs.parse(url)).length, 2000);
});

test("should parse large numbers", () => {
assert.strictEqual(
qs.parse("id=918854443121279438895193").id,
"918854443121279438895193",
);
});

0 comments on commit 8bcd234

Please sign in to comment.