Skip to content

Commit

Permalink
remove duplication of data in the return
Browse files Browse the repository at this point in the history
Co-authored-by: Jennifer Q <[email protected]>
  • Loading branch information
lorerod and latin-panda authored Nov 19, 2024
1 parent b80fb50 commit d22a7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/factories/cht/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const createDataWithRealNames = ({ healthCenter, user, nbrClinics = 10, nbrPerso

const allPersons = [...kids, ...adults];

return { clinic, persons: allPersons, kids, adults };
return { clinic, kids, adults };
});

const allPersons = clinicsData.flatMap(data => data.persons);
Expand Down

0 comments on commit d22a7ec

Please sign in to comment.