[#90] added freebusy (#618)

This commit is contained in:
Camille Moussu
2026-03-12 18:07:25 +01:00
committed by GitHub
parent 047cbeef62
commit fd7581a8db
18 changed files with 917 additions and 29 deletions
@@ -1,3 +1,4 @@
import * as calendarsApi from "@/features/Calendars/CalendarApi";
import * as eventThunks from "@/features/Calendars/services";
import EventPopover from "@/features/Events/EventModal";
import { api } from "@/utils/apiUtils";
@@ -210,6 +211,9 @@ describe("EventPopover", () => {
});
it("adds a attendee", async () => {
jest.useFakeTimers();
jest
.spyOn(calendarsApi, "getCalendars")
.mockReturnValue({ json: jest.fn() });
renderPopover();
fireEvent.change(screen.getByLabelText("event.form.title"), {
target: { value: "newEvent" },