fix flaky tests (#8638)

This commit is contained in:
Ulf Gebhardt 2025-06-04 23:40:48 +02:00 committed by GitHub
parent 7d95c6437a
commit aaf3b34125
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1224,7 +1224,7 @@ describe('notifications', () => {
}), }),
).resolves.toMatchObject({ ).resolves.toMatchObject({
data: { data: {
notifications: [ notifications: expect.arrayContaining([
{ {
read: false, read: false,
reason: 'user_left_group', reason: 'user_left_group',
@ -1249,7 +1249,7 @@ describe('notifications', () => {
id: 'you', id: 'you',
}, },
}, },
], ]),
}, },
errors: undefined, errors: undefined,
}) })
@ -1280,7 +1280,7 @@ describe('notifications', () => {
}), }),
).resolves.toMatchObject({ ).resolves.toMatchObject({
data: { data: {
notifications: [ notifications: expect.arrayContaining([
{ {
read: false, read: false,
reason: 'user_left_group', reason: 'user_left_group',
@ -1305,7 +1305,7 @@ describe('notifications', () => {
id: 'you', id: 'you',
}, },
}, },
], ]),
}, },
errors: undefined, errors: undefined,
}) })