mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Add a double-check just to be sure
This commit is contained in:
parent
c669fc08eb
commit
c24876c922
@ -212,9 +212,12 @@ describe('given some notifications', () => {
|
||||
]),
|
||||
},
|
||||
})
|
||||
await expect(
|
||||
query({ query: notificationQuery, variables: { ...variables, read: false } }),
|
||||
).resolves.toMatchObject(expected)
|
||||
const response = await query({
|
||||
query: notificationQuery,
|
||||
variables: { ...variables, read: false },
|
||||
})
|
||||
await expect(response).toMatchObject(expected)
|
||||
await expect(response.data.notifications.length).toEqual(2) // double-check
|
||||
})
|
||||
|
||||
describe('if a resource gets deleted', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user