diff --git a/apps/web/test/lib/getSchedule.test.ts b/apps/web/test/lib/getSchedule.test.ts index d26b1325fdcd67..b1f4854d72510e 100644 --- a/apps/web/test/lib/getSchedule.test.ts +++ b/apps/web/test/lib/getSchedule.test.ts @@ -7,27 +7,6 @@ import prisma from "@calcom/prisma"; import { BookingStatus, PeriodType } from "@calcom/prisma/client"; import { getSchedule } from "@calcom/trpc/server/routers/viewer/slots"; -jest.mock("uuid", () => ({ - v4: () => `uuidv4`, -})); - -jest.mock("ics", () => ({ - createEvent: () => ({ error: null, value: "iCalString" }), -})); - -jest.mock("@calcom/core/getUserAvailability", () => ({ - getUserAvailability: async () => ({ - busy: [], - timeZone: "America/Mazatlan", - workingHours: [], - currentSeats: [], - }), -})); - -afterEach(() => { - jest.resetAllMocks(); -}); - declare global { // eslint-disable-next-line @typescript-eslint/no-namespace namespace jest { @@ -302,7 +281,7 @@ afterEach(async () => { describe("getSchedule", () => { describe("User Event", () => { - test.skip("correctly identifies unavailable slots from Cal Bookings", async () => { + test("correctly identifies unavailable slots from Cal Bookings", async () => { // const { dateString: todayDateString } = getDate(); const { dateString: plus1DateString } = getDate({ dateIncrement: 1 }); const { dateString: plus2DateString } = getDate({ dateIncrement: 2 }); @@ -397,7 +376,7 @@ describe("getSchedule", () => { ); }); - test.skip("correctly identifies unavailable slots from calendar", async () => { + test("correctly identifies unavailable slots from calendar", async () => { const { dateString: plus1DateString } = getDate({ dateIncrement: 1 }); const { dateString: plus2DateString } = getDate({ dateIncrement: 2 }); @@ -477,7 +456,7 @@ describe("getSchedule", () => { }); describe("Team Event", () => { - test.skip("correctly identifies unavailable slots from calendar", async () => { + test("correctly identifies unavailable slots from calendar", async () => { const { dateString: todayDateString } = getDate(); const { dateString: plus1DateString } = getDate({ dateIncrement: 1 });