Skip to content

Commit

Permalink
chore: Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui committed Feb 7, 2024
1 parent 62eeaff commit 209c316
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/group/components/GroupForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ const GroupForm = () => {
dispatch(
saveGroup({
group: {
..._.omit(['membershipsInfo.membershipType'], group),
..._.omit(
['membershipsInfo.membershipType', 'sharedResources'],
group
),
membershipType: group.membershipsInfo.membershipType,
},
user,
Expand Down
2 changes: 1 addition & 1 deletion src/group/groupService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ test('GroupService: Fetch group', async () => {
pendingCount: undefined,
totalCount: undefined,
},
dataEntries: undefined,
sharedResources: undefined,
});
});
test('GroupService: Fetch group not found', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/landscape/landscapeService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -57,6 +56,7 @@ test('LandscapeService: Fetch landscape with missing fields', async () => {
},
partnership: undefined,
partnershipStatus: undefined,
sharedResources: undefined,
taxonomyTerms: {},
developmentStrategy: undefined,
affiliatedGroups: [],
Expand Down

0 comments on commit 209c316

Please sign in to comment.