From 5f259496e070e5cb8db0eff095654c6c480004e8 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Wed, 6 Sep 2023 17:22:00 +0530 Subject: [PATCH] Fix the target PR feedback --- apps/web/test/utils/bookingScenario/bookingScenario.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/test/utils/bookingScenario/bookingScenario.ts b/apps/web/test/utils/bookingScenario/bookingScenario.ts index 980a1bd409..2b38ddc269 100644 --- a/apps/web/test/utils/bookingScenario/bookingScenario.ts +++ b/apps/web/test/utils/bookingScenario/bookingScenario.ts @@ -185,7 +185,7 @@ function addEventTypes(eventTypes: InputEventType[], usersStore: InputUser[]) { prismaMock.eventType.findUniqueOrThrow.mockImplementation(eventTypeMock); } -async function addBookings(bookings: InputBooking[], eventTypes: InputEventType[]) { +function addBookings(bookings: InputBooking[], eventTypes: InputEventType[]) { logger.silly("TestData: Creating Bookings", bookings); const allBookings = (MOCK_DB.bookings = [...bookings].map((booking, index) => { return { @@ -282,7 +282,7 @@ async function addBookings(bookings: InputBooking[], eventTypes: InputEventType[ }); } -async function addWebhooks(webhooks: InputWebhook[]) { +function addWebhooks(webhooks: InputWebhook[]) { logger.silly("TestData: Creating Webhooks", webhooks); // TODO: Improve it to actually consider where clause in prisma query. // eslint-disable-next-line @typescript-eslint/ban-ts-comment @@ -396,7 +396,7 @@ function addUsers(users: InputUser[]) { ); } -export async function createBookingScenario(data: ScenarioData) { +export function createBookingScenario(data: ScenarioData) { logger.silly("TestData: Creating Scenario", data); addUsers(data.users);