Skip to content

Commit

Permalink
test: add testcase for require
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Feb 9, 2024
1 parent 0531f97 commit 9350738
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "partial-json",
"version": "0.1.5",
"version": "0.1.6",
"description": "Parse partial JSON generated by LLM",
"keywords": [
"JSON",
Expand Down
4 changes: 4 additions & 0 deletions tests/examples.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ test("num", () => {
expect(parse("-1.25e+", NUM)).toBe(-1.25);
expect(parse("-1.25e", NUM)).toBe(-1.25);
});

test("require", () => {
expect(require("partial-json").STR).toBe(STR);
});

1 comment on commit 9350738

@vercel
Copy link

@vercel vercel bot commented on 9350738 Feb 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.