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...
This commit is contained in:
mattwr18 2019-09-23 08:09:35 +02:00
parent 3a36b50867
commit 865c562048

View File

@ -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', () => {