Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ogroppo committed Oct 13, 2024
1 parent c7ba096 commit 59f3f00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validators/isNumber.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
isOutsideInt4,
isPositiveInt,
} from "./isNumber";
import { INT4_MAX } from "../constants/numbers";

describe("isNumber", function () {
describe("isNumber", function () {
Expand Down Expand Up @@ -136,7 +137,7 @@ describe("isOutsideInt4", function () {
});

it("checks false", function () {
expect(isOutsideInt4(Number.MAX_SAFE_INTEGER)).toBe(false);
expect(isOutsideInt4(INT4_MAX)).toBe(false);
expect(isOutsideInt4(1)).toBe(false);
expect(isOutsideInt4(0)).toBe(false);
expect(isOutsideInt4(12345678901234567890 / 10e9)).toBe(false);
Expand Down

0 comments on commit 59f3f00

Please sign in to comment.