Fixed test

This commit is contained in:
Hendrik Belitz
2025-09-16 17:20:45 +02:00
parent 93cfa75fc7
commit 707d44aa7b
@@ -146,7 +146,7 @@ describe("Appointment Cancel API", () => {
expect(response.status).toBe(200);
});
it("should return 400 if tenant ID or appointment ID is missing", async () => {
it("should return 422 if tenant ID or appointment ID is missing", async () => {
const event = createMockRequestEvent({
params: { id: mockTenantId },
});
@@ -154,7 +154,7 @@ describe("Appointment Cancel API", () => {
const response = await PUT(event);
const result = await response.json();
expect(response.status).toBe(400);
expect(response.status).toBe(422);
expect(result.error).toBe("Tenant ID and appointment ID are required");
});