Type fixes

pull/11044/head
Hariom Balhara 2023-09-02 15:24:38 +05:30
parent eb35edce74
commit 335ebb30c5
2 changed files with 3 additions and 1 deletions

View File

@ -683,7 +683,7 @@ export function expectWorkflowToBeTriggered() {
// TODO: Implement this. // TODO: Implement this.
} }
export function expectBookingToBeInDatabase(booking: Prisma.BookingCreateInput) { export function expectBookingToBeInDatabase(booking: Partial<Prisma.BookingCreateInput>) {
const createBookingCalledWithArgs = prismaMock.booking.create.mock.calls[0]; const createBookingCalledWithArgs = prismaMock.booking.create.mock.calls[0];
expect(createBookingCalledWithArgs[0].data).toEqual(expect.objectContaining(booking)); expect(createBookingCalledWithArgs[0].data).toEqual(expect.objectContaining(booking));
} }
@ -708,6 +708,7 @@ expect.extend({
toHaveEmail( toHaveEmail(
testEmail: ReturnType<Fixtures["emails"]["get"]>[number], testEmail: ReturnType<Fixtures["emails"]["get"]>[number],
expectedEmail: { expectedEmail: {
//TODO: Support email HTML parsing to target specific elements
htmlToContain?: string; htmlToContain?: string;
to: string; to: string;
} }

View File

@ -10,6 +10,7 @@ import { appKeysSchema as calVideoKeysSchema } from "@calcom/app-store/dailyvide
import { getEventLocationTypeFromApp } from "@calcom/app-store/locations"; import { getEventLocationTypeFromApp } from "@calcom/app-store/locations";
import { MeetLocationType } from "@calcom/app-store/locations"; import { MeetLocationType } from "@calcom/app-store/locations";
import getApps from "@calcom/app-store/utils"; import getApps from "@calcom/app-store/utils";
import logger from "@calcom/lib/logger";
import prisma from "@calcom/prisma"; import prisma from "@calcom/prisma";
import { createdEventSchema } from "@calcom/prisma/zod-utils"; import { createdEventSchema } from "@calcom/prisma/zod-utils";
import type { NewCalendarEventType } from "@calcom/types/Calendar"; import type { NewCalendarEventType } from "@calcom/types/Calendar";