From 209c316014f23ee3a69adb7afacb247a867d4168 Mon Sep 17 00:00:00 2001 From: Jose Buitron Date: Wed, 7 Feb 2024 15:56:25 -0500 Subject: [PATCH] chore: Fixed tests --- src/group/components/GroupForm.js | 5 ++++- src/group/groupService.test.ts | 2 +- src/landscape/landscapeService.test.ts | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/group/components/GroupForm.js b/src/group/components/GroupForm.js index d93cab76bb..f5577e5f73 100644 --- a/src/group/components/GroupForm.js +++ b/src/group/components/GroupForm.js @@ -219,7 +219,10 @@ const GroupForm = () => { dispatch( saveGroup({ group: { - ..._.omit(['membershipsInfo.membershipType'], group), + ..._.omit( + ['membershipsInfo.membershipType', 'sharedResources'], + group + ), membershipType: group.membershipsInfo.membershipType, }, user, diff --git a/src/group/groupService.test.ts b/src/group/groupService.test.ts index 6d68c2a3e0..9accf7d1a6 100644 --- a/src/group/groupService.test.ts +++ b/src/group/groupService.test.ts @@ -52,7 +52,7 @@ test('GroupService: Fetch group', async () => { pendingCount: undefined, totalCount: undefined, }, - dataEntries: undefined, + sharedResources: undefined, }); }); test('GroupService: Fetch group not found', async () => { diff --git a/src/landscape/landscapeService.test.ts b/src/landscape/landscapeService.test.ts index 6751567f95..9097d960ca 100644 --- a/src/landscape/landscapeService.test.ts +++ b/src/landscape/landscapeService.test.ts @@ -45,7 +45,6 @@ test('LandscapeService: Fetch landscape with missing fields', async () => { description: 'Landscape description', website: 'https://www.landscape.org', areaPolygon: null, - dataEntries: undefined, accountMembership: undefined, membershipsInfo: { accountMembership: undefined, @@ -57,6 +56,7 @@ test('LandscapeService: Fetch landscape with missing fields', async () => { }, partnership: undefined, partnershipStatus: undefined, + sharedResources: undefined, taxonomyTerms: {}, developmentStrategy: undefined, affiliatedGroups: [],