From 877ce2a1e4a7988e32f76b9bb2f0e7836a1202b4 Mon Sep 17 00:00:00 2001 From: Sebastian Barry <61334340+sebastianbarry@users.noreply.github.com> Date: Mon, 22 Jan 2024 14:18:10 -0600 Subject: [PATCH] Add more test logs --- www/__tests__/notifScheduler.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/__tests__/notifScheduler.test.ts b/www/__tests__/notifScheduler.test.ts index ddf52f155..ed8499bbd 100644 --- a/www/__tests__/notifScheduler.test.ts +++ b/www/__tests__/notifScheduler.test.ts @@ -264,10 +264,15 @@ describe('updateScheduledNotifs', () => { callback(arg); }); // call the function + console.log('test log: before calling updateScheduledNotifs', mockNotifs); + await updateScheduledNotifs(reminderSchemes, isScheduling, setIsScheduling, scheduledPromise); + + console.log('test log: after calling updateScheduledNotifs', mockNotifs); + const scheduledNotifs = await getScheduledNotifs(isScheduling, scheduledPromise); - console.log('test log'); + console.log('test log: after calling getScheduleNotifs', mockNotifs); expect(setIsScheduling).toHaveBeenCalledWith(true); expect(logDebug).toHaveBeenCalledWith('After cancelling, there are no scheduled notifications');