mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix intermittent backend specs
@mattwr18 I still see those false positives. This should fix it.
This commit is contained in:
parent
9646a3d7b9
commit
c669fc08eb
@ -192,7 +192,7 @@ describe('given some notifications', () => {
|
|||||||
it('returns only unread notifications of current user', async () => {
|
it('returns only unread notifications of current user', async () => {
|
||||||
const expected = expect.objectContaining({
|
const expected = expect.objectContaining({
|
||||||
data: {
|
data: {
|
||||||
notifications: [
|
notifications: expect.arrayContaining([
|
||||||
{
|
{
|
||||||
from: {
|
from: {
|
||||||
__typename: 'Comment',
|
__typename: 'Comment',
|
||||||
@ -209,7 +209,7 @@ describe('given some notifications', () => {
|
|||||||
read: false,
|
read: false,
|
||||||
createdAt: '2019-08-31T17:33:48.651Z',
|
createdAt: '2019-08-31T17:33:48.651Z',
|
||||||
},
|
},
|
||||||
],
|
]),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
await expect(
|
await expect(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user