From fb9f83d63842cee35b73ce1442937380677e127d Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Fri, 17 Apr 2026 00:44:41 +0000 Subject: [PATCH] fix(GRO-643): update test to include required email field The test was sending only name without email, but since email became required in createClientSchema, it now returns 400 instead of 201. Co-Authored-By: Paperclip --- apps/api/src/__tests__/clients.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/__tests__/clients.test.ts b/apps/api/src/__tests__/clients.test.ts index 7484e59..c12aebd 100644 --- a/apps/api/src/__tests__/clients.test.ts +++ b/apps/api/src/__tests__/clients.test.ts @@ -195,8 +195,8 @@ describe("POST /clients", () => { expect(insertedValues[0]!.name).toBe("Charlie"); }); - it("creates a client with only required name field", async () => { - const res = await jsonRequest("POST", "/clients", { name: "Dana" }); + it("creates a client with required fields", async () => { + const res = await jsonRequest("POST", "/clients", { name: "Dana", email: "dana@example.com" }); expect(res.status).toBe(201); expect(insertedValues[0]!.name).toBe("Dana"); });