It was written up in 4.7 but never made the work order, which is exactly how it stayed dangerous in the first place. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
16 lines
473 B
TypeScript
16 lines
473 B
TypeScript
import { expect, test } from "bun:test";
|
|
import { parseOrThrow } from "@wrnexus/validation";
|
|
import { contactSchema } from "../app/schemas/contact.ts";
|
|
|
|
test("starter validation schema accepts a contact request", () => {
|
|
expect(
|
|
parseOrThrow(contactSchema, {
|
|
email: "hello@example.com",
|
|
message: "Hello from the generated application.",
|
|
}),
|
|
).toEqual({
|
|
email: "hello@example.com",
|
|
message: "Hello from the generated application.",
|
|
});
|
|
});
|