From 6f43b560c423d4f0edf4f4c62684e664cbb6b29a Mon Sep 17 00:00:00 2001 From: Camille Moussu Date: Wed, 20 Aug 2025 09:40:52 +0200 Subject: [PATCH] [#4] fixed test for d&d --- .../components/EventModifications.test.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/__test__/components/EventModifications.test.tsx b/__test__/components/EventModifications.test.tsx index 9581bf3..e713c75 100644 --- a/__test__/components/EventModifications.test.tsx +++ b/__test__/components/EventModifications.test.tsx @@ -18,7 +18,6 @@ describe("CalendarApp integration", () => { jest.clearAllMocks(); const dispatch = jest.fn() as ThunkDispatch; jest.spyOn(appHooks, "useAppDispatch").mockReturnValue(dispatch); - jest.useFakeTimers(); // optional }); const renderCalendar = () => { @@ -36,7 +35,9 @@ describe("CalendarApp integration", () => { list: { "667037022b752d0026472254/cal1": { name: "Calendar 1", + id: "667037022b752d0026472254/cal1", color: "#FF0000", + ownerEmails: ["alice@example.com"], events: { event1: { id: "event1", @@ -45,6 +46,21 @@ describe("CalendarApp integration", () => { title: "Test Event", start: start.toISOString(), end: end.toISOString(), + partstat: "ACCEPTED", + organizer: { + cn: "Alice", + cal_address: "alice@example.com", + }, + attendee: [ + { + cn: "Alice", + partstat: "ACCEPTED", + rsvp: "TRUE", + role: "REQ-PARTICIPANT", + cutype: "INDIVIDUAL", + cal_address: "alice@example.com", + }, + ], }, }, },