Skip to content

Commit

Permalink
rename unit test variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ssalbdivad committed May 23, 2024
1 parent 5aa6a73 commit f54b7d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ark/type/__tests__/narrow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit f54b7d5

Please sign in to comment.