Update backend/src/graphql/resolver/UserResolver.test.ts

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
This commit is contained in:
clauspeterhuebner 2022-09-23 01:03:07 +02:00 committed by GitHub
parent 62446bd2f0
commit b0781bce88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,8 +214,7 @@ describe('UserResolver', () => {
mutation: createUser,
variables: { ...variables, email: 'bibi@bloxberg.de', language: 'it' },
})
await expect(User.find({ relations: ['emailContact'] })).resolves.toEqual(
expect.arrayContaining([
await expect(User.find({ relations: ['emailContact'] })).resolves.toContain(
expect.objectContaining({
emailContact: expect.objectContaining({
email: 'bibi@bloxberg.de',