From 865c562048aa206e4a941927bcc967fc2df03022 Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Mon, 23 Sep 2019 08:09:35 +0200 Subject: [PATCH] Fix intermittent failing test - the test was regularly failing our build - change from toEqual to toMatchObject since there is more info coming back, like errors, etc... --- backend/src/schema/resolvers/notifications.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/schema/resolvers/notifications.spec.js b/backend/src/schema/resolvers/notifications.spec.js index 0e4fc48f7..3a1c23d23 100644 --- a/backend/src/schema/resolvers/notifications.spec.js +++ b/backend/src/schema/resolvers/notifications.spec.js @@ -214,7 +214,7 @@ describe('given some notifications', () => { }) await expect( query({ query: notificationQuery, variables: { ...variables, read: false } }), - ).resolves.toEqual(expected) + ).resolves.toMatchObject(expected) }) describe('if a resource gets deleted', () => {