diff --git a/backend/src/schema/resolvers/groups.spec.js b/backend/src/schema/resolvers/groups.spec.js index 15b39fc01..e9b38cc2b 100644 --- a/backend/src/schema/resolvers/groups.spec.js +++ b/backend/src/schema/resolvers/groups.spec.js @@ -468,13 +468,13 @@ describe('in mode', () => { }) expect(result).toMatchObject({ data: { - Group: [ + Group: expect.arrayContaining([ expect.objectContaining({ id: 'third-hidden-group', slug: 'third-investigative-journalism-group', myRole: 'usual', }), - ], + ]), }, errors: undefined, }) @@ -508,18 +508,18 @@ describe('in mode', () => { const result = await query({ query: groupQuery, variables: { isMember: true } }) expect(result).toMatchObject({ data: { - Group: [ - { + Group: expect.arrayContaining([ + expect.objectContaining({ id: 'my-group', slug: 'the-best-group', myRole: 'owner', - }, - { + }), + expect.objectContaining({ id: 'third-hidden-group', slug: 'third-investigative-journalism-group', myRole: 'usual', - }, - ], + }), + ]), }, errors: undefined, })