test: In Team Event type when location is Organizer Default App and U… (#12939)

* test: In Team Event type when location is Organizer Default App and User Metadata is emoty

* chore: use variable

* fix: type error
This commit is contained in:
Udit Takkar authored and GitHub committed 2024-01-15 19:38:16 +00:00
1 parent 18f637d94c
commit 13a765e50a
4 files changed
+216 -1

No files matched your search

@@ -19,6 +19,7 @@ import { safeStringify } from "@calcom/lib/safeStringify";
import type { WorkflowActions, WorkflowTemplates, WorkflowTriggerEvents } from "@calcom/prisma/client";
import type { SchedulingType } from "@calcom/prisma/enums";
import type { BookingStatus } from "@calcom/prisma/enums";
import type { userMetadataType } from "@calcom/prisma/zod-utils";
import type { AppMeta } from "@calcom/types/App";
import type { NewCalendarEventType } from "@calcom/types/Calendar";
import type { EventBusyDate, IntervalLimit } from "@calcom/types/Calendar";
@@ -887,6 +888,7 @@ export function getOrganizer({
weekStart = "Sunday",
teams,
organizationId,
metadata,
}: {
name: string;
email: string;
@@ -899,6 +901,7 @@ export function getOrganizer({
destinationCalendar?: Prisma.DestinationCalendarCreateInput;
weekStart?: WeekDays;
teams?: InputUser["teams"];
metadata?: userMetadataType;
}) {
return {
...TestData.users.example,
@@ -913,6 +916,7 @@ export function getOrganizer({
weekStart,
teams,
organizationId,
metadata,
};
}