mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-29 04:04:51 +02:00
Fixed test
This commit is contained in:
+2
-2
@@ -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");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user