Skip to content

Commit

Permalink
Add more test logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbarry committed Jan 22, 2024
1 parent 4db62d7 commit 877ce2a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion www/__tests__/notifScheduler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 877ce2a

Please sign in to comment.