Skip to content

Commit

Permalink
refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
uzmoi committed Jan 16, 2024
1 parent 552cf46 commit ae4e139
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions examples/json.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ describe("JSON", () => {
});
});

test("number parsing to fail..", () => {
expect(jsonParser.parse("00")).toHaveProperty("success", false);
expect(jsonParser.parse("- 0")).toHaveProperty("success", false);
expect(jsonParser.parse("0.")).toHaveProperty("success", false);
expect(jsonParser.parse(".0")).toHaveProperty("success", false);
test.each(["00", "- 0", "0.", ".0"])("%o is invalid json.", n => {
expect(jsonParser.parse(n)).toHaveProperty("success", false);
});

test.each([
Expand Down

0 comments on commit ae4e139

Please sign in to comment.