From 691e69d55080802009d7962b7bd8604ba3162a16 Mon Sep 17 00:00:00 2001 From: Sebastian Barry <61334340+sebastianbarry@users.noreply.github.com> Date: Mon, 22 Jan 2024 17:17:25 -0600 Subject: [PATCH] Use arrayContaining --- www/__tests__/notifScheduler.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/__tests__/notifScheduler.test.ts b/www/__tests__/notifScheduler.test.ts index 30708a649..c3f5f60b2 100644 --- a/www/__tests__/notifScheduler.test.ts +++ b/www/__tests__/notifScheduler.test.ts @@ -274,7 +274,7 @@ describe('updateScheduledNotifs', () => { await updateScheduledNotifs(reminderSchemes, isScheduling, setIsScheduling, scheduledPromise); const scheduledNotifs = await getScheduledNotifs(isScheduling, scheduledPromise); - expect(scheduledNotifs).toEqual(expectedResultcheduleNotifs); + expect(scheduledNotifs).toEqual(expect.arrayContaining(expectedResultcheduleNotifs)); }); it('should resolve without scheduling if notifications are already scheduled', async () => {