Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
@@ -309,7 +309,7 @@ describe("CalendarPopover - Tabs Scenarios", () => {
|
||||
});
|
||||
|
||||
it("copies CalDAV link from Access tab", async () => {
|
||||
(window as any).CALENDAR_BASE_URL = "https://cal.example.org";
|
||||
window.CALENDAR_BASE_URL = "https://cal.example.org";
|
||||
Object.assign(navigator, {
|
||||
clipboard: { writeText: jest.fn() },
|
||||
});
|
||||
@@ -443,7 +443,7 @@ describe("CalendarPopover - Tabs Scenarios", () => {
|
||||
});
|
||||
|
||||
it("fetches and resets the secret link", async () => {
|
||||
(window as any).CALENDAR_BASE_URL = "https://cal.example.org";
|
||||
window.CALENDAR_BASE_URL = "https://cal.example.org";
|
||||
|
||||
(getSecretLink as jest.Mock)
|
||||
.mockResolvedValueOnce({
|
||||
|
||||
@@ -10,15 +10,12 @@ import { Calendar } from "@/features/Calendars/CalendarTypes";
|
||||
import {
|
||||
addSharedCalendarAsync,
|
||||
createCalendarAsync,
|
||||
deleteEventAsync,
|
||||
getCalendarDetailAsync,
|
||||
getCalendarsListAsync,
|
||||
getEventAsync,
|
||||
getTempCalendarsListAsync,
|
||||
moveEventAsync,
|
||||
patchACLCalendarAsync,
|
||||
patchCalendarAsync,
|
||||
putEventAsync,
|
||||
removeCalendarAsync,
|
||||
} from "@/features/Calendars/services";
|
||||
import { CalendarEvent } from "@/features/Events/EventsTypes";
|
||||
|
||||
Reference in New Issue
Block a user