diff --git a/ark/type/__tests__/narrow.test.ts b/ark/type/__tests__/narrow.test.ts index e4d689b4ed..25844e80d0 100644 --- a/ark/type/__tests__/narrow.test.ts +++ b/ark/type/__tests__/narrow.test.ts @@ -22,12 +22,12 @@ contextualize(() => { }) it("explicit problem", () => { - const even = type([ + const divisibleBy3 = type([ "number", ":", (n, ctx) => n % 3 === 0 || ctx.invalid("divisible by 3") ]) - attest(even(1).toString()).snap("must be divisible by 3 (was 1)") + attest(divisibleBy3(1).toString()).snap("must be divisible by 3 (was 1)") }) it("problem at path", () => {