From dcfb36179348a9335264318941e43b8f2020b3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Sat, 17 Sep 2022 21:05:43 +0200 Subject: [PATCH] Refine group 'UpdateGroup' resolver tests --- backend/src/schema/resolvers/groups.spec.js | 22 --------------------- 1 file changed, 22 deletions(-) diff --git a/backend/src/schema/resolvers/groups.spec.js b/backend/src/schema/resolvers/groups.spec.js index 2911a8b06..5ef1006d1 100644 --- a/backend/src/schema/resolvers/groups.spec.js +++ b/backend/src/schema/resolvers/groups.spec.js @@ -2756,7 +2756,6 @@ describe('in mode', () => { mutation: updateGroupMutation, variables: { id: 'my-group', - // avatar, // test this as result locationName: null, }, }), @@ -2781,7 +2780,6 @@ describe('in mode', () => { mutation: updateGroupMutation, variables: { id: 'my-group', - // avatar, // test this as result locationName: 'Paris, France', }, }), @@ -2789,12 +2787,6 @@ describe('in mode', () => { data: { UpdateGroup: { id: 'my-group', - name: 'The New Group For Our Country', - slug: 'the-new-group-for-our-country', // changing the slug is tested in the slugifyMiddleware - about: 'We will change the land!', - description: 'Some country relevant description' + descriptionAdditional100, - actionRadius: 'national', - // avatar, // test this as result locationName: 'Paris, France', location: expect.objectContaining({ name: 'Paris', @@ -2816,7 +2808,6 @@ describe('in mode', () => { mutation: updateGroupMutation, variables: { id: 'my-group', - // avatar, // test this as result locationName: 'Hamburg, Germany', }, }), @@ -2824,12 +2815,6 @@ describe('in mode', () => { data: { UpdateGroup: { id: 'my-group', - name: 'The New Group For Our Country', - slug: 'the-new-group-for-our-country', // changing the slug is tested in the slugifyMiddleware - about: 'We will change the land!', - description: 'Some country relevant description' + descriptionAdditional100, - actionRadius: 'national', - // avatar, // test this as result locationName: 'Hamburg, Germany', location: expect.objectContaining({ name: 'Hamburg', @@ -2851,7 +2836,6 @@ describe('in mode', () => { mutation: updateGroupMutation, variables: { id: 'my-group', - // avatar, // test this as result locationName: '', // empty string '' sets it to null }, }), @@ -2859,12 +2843,6 @@ describe('in mode', () => { data: { UpdateGroup: { id: 'my-group', - name: 'The New Group For Our Country', - slug: 'the-new-group-for-our-country', // changing the slug is tested in the slugifyMiddleware - about: 'We will change the land!', - description: 'Some country relevant description' + descriptionAdditional100, - actionRadius: 'national', - // avatar, // test this as result locationName: null, location: null, myRole: 'owner',