Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Dec 10, 2024
1 parent 3755146 commit 963386d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deno/lib/__tests__/description.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ test("description should carry over to chained schemas", () => {
});

test("description should not carry over to chained array schema", () => {
const schema = z.string().describe(description)
const schema = z.string().describe(description);

expect(schema.description).toEqual(description);
expect(schema.array().description).toEqual(undefined);
expect(z.array(schema).description).toEqual(undefined);
})
});
4 changes: 2 additions & 2 deletions src/__tests__/description.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ test("description should carry over to chained schemas", () => {
});

test("description should not carry over to chained array schema", () => {
const schema = z.string().describe(description)
const schema = z.string().describe(description);

expect(schema.description).toEqual(description);
expect(schema.array().description).toEqual(undefined);
expect(z.array(schema).description).toEqual(undefined);
})
});

0 comments on commit 963386d

Please sign in to comment.