Skip to content

Commit 6172051

Browse files
committed
fix: tests
1 parent 6dfa45d commit 6172051

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/endpoint.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ describe("response", () => {
511511
"/endpoint",
512512
{
513513
method: "POST",
514-
body: z.string().min(10).max(1), // Impossible to satisfy
514+
body: z.string().min(1000),
515515
onValidationError({ issues, message }) {
516516
expect(typeof message).toBe("string");
517517
expect(issues.length).toBeGreaterThan(0);
@@ -527,7 +527,7 @@ describe("response", () => {
527527
},
528528
);
529529
try {
530-
const response = await endpoint({ body: "Hello world!" });
530+
const response = await endpoint({ body: "I'm less than 1000 characters" });
531531
// This ensures that there is an error thrown.
532532
expect(response).not.toBeCalled();
533533
} catch (error) {

0 commit comments

Comments
 (0)