Skip to content

Commit 5b12ad4

Browse files
committed
fix tests
1 parent 1345055 commit 5b12ad4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/trpc/server/routers/viewer/calendars/setDestinationCalendar.handler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { TRPCError } from "@trpc/server";
2020
import type { TrpcSessionUser } from "../../../types";
2121
import { setDestinationCalendarHandler } from "./setDestinationCalendar.handler";
2222

23-
vi.mock("@calcom/lib/CalendarManager", () => ({
23+
vi.mock("@calcom/features/calendars/lib/CalendarManager", () => ({
2424
getConnectedCalendars: vi.fn(),
2525
getCalendarCredentials: vi.fn().mockImplementation((creds) => creds),
2626
}));

tests/libs/__mocks__/CalendarManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { mockReset, mockDeep } from "vitest-mock-extended";
33

44
import type * as CalendarManager from "@calcom/features/calendars/lib/CalendarManager";
55

6-
vi.mock("@calcom/lib/CalendarManager", () => CalendarManagerMock);
6+
vi.mock("@calcom/features/calendars/lib/CalendarManager", () => CalendarManagerMock);
77

88
beforeEach(() => {
99
mockReset(CalendarManagerMock);

0 commit comments

Comments
 (0)