Skip to content

Commit

Permalink
isNumericId test
Browse files Browse the repository at this point in the history
  • Loading branch information
ogroppo committed Aug 23, 2023
1 parent 48fa44e commit 0f3f1c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validators/isNumericId.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("isNumericId", () => {
expect(isNumericId("99999999")).toBe(true);
});

test("args", async () => {
test("false", async () => {
expect(isNumericId("0")).toBe(false);
expect(isNumericId("2e3")).toBe(false);
expect(isNumericId("-0")).toBe(false);
Expand All @@ -17,5 +17,6 @@ describe("isNumericId", () => {
expect(isNumericId(" 1 ")).toBe(false);
expect(isNumericId(" 1 1")).toBe(false);
expect(isNumericId("1.1")).toBe(false);
expect(isNumericId("8/28/2023")).toBe(false);
});
});

0 comments on commit 0f3f1c1

Please sign in to comment.