From 3fad3ee619e0fa496cfe14d5479d7f539e0fd7f1 Mon Sep 17 00:00:00 2001 From: Diana Rita Nanyanzi <31903212+d-rita@users.noreply.github.com> Date: Tue, 5 Jul 2022 14:48:15 +0300 Subject: [PATCH] Refactor user group related functions: - Eliminate redundant user group utils function and test - Pass users array directly to the results component - Modify user group csv headers - Modify user group test data --- src/components/tests/footer.test.js | 2 +- src/components/userGroup/constants.js | 14 +++++++------- src/components/userGroup/tests/testData.js | 6 +++--- src/utils/tests/testData.js | 17 +++++++++++++++++ src/utils/userGroupUtils.js | 13 ------------- src/views/UserGroupReport.js | 5 ++--- 6 files changed, 30 insertions(+), 27 deletions(-) delete mode 100644 src/utils/userGroupUtils.js diff --git a/src/components/tests/footer.test.js b/src/components/tests/footer.test.js index 71a59cd..345aa96 100644 --- a/src/components/tests/footer.test.js +++ b/src/components/tests/footer.test.js @@ -6,7 +6,7 @@ import { Footer } from "../footer"; afterEach(cleanup); it("Footer component", () => { - const { getByText, debug } = render( + const { getByText } = render(