fix: upgrade prismock to 1.33.4 (#17735)

* upgrade prismock, removed 2 hacks, update 3 tests

* yarnlock changes
This commit is contained in:
Vijay authored and GitHub committed 2024-11-19 23:20:27 +00:00
1 parent dfdb04acf4
commit e3abd35ba7
4 files changed
+95 -238

No files matched your search

@@ -443,7 +443,7 @@ describe("scheduleBookingReminders", () => {
];
scheduledWorkflowReminders.forEach((reminder, index) => {
expect(expectedScheduledDates[index]).toStrictEqual(reminder.scheduledDate);
expect(expectedScheduledDates[index].toISOString()).toStrictEqual(reminder.scheduledDate.toISOString());
expect(reminder.method).toBe(WorkflowMethods.EMAIL);
if (index < 2) {
expect(reminder.scheduled).toBe(true);
@@ -527,7 +527,7 @@ describe("scheduleBookingReminders", () => {
];
scheduledWorkflowReminders.forEach((reminder, index) => {
expect(expectedScheduledDates[index]).toStrictEqual(reminder.scheduledDate);
expect(expectedScheduledDates[index].toISOString()).toStrictEqual(reminder.scheduledDate.toISOString());
expect(reminder.method).toBe(WorkflowMethods.EMAIL);
if (index < 2) {
expect(reminder.scheduled).toBe(true);
@@ -662,7 +662,7 @@ describe("scheduleBookingReminders", () => {
];
scheduledWorkflowReminders.forEach((reminder, index) => {
expect(expectedScheduledDates[index]).toStrictEqual(reminder.scheduledDate);
expect(expectedScheduledDates[index].toISOString()).toStrictEqual(reminder.scheduledDate.toISOString());
expect(reminder.method).toBe(WorkflowMethods.SMS);
if (index < 2) {
expect(reminder.scheduled).toBe(true);