From 27ced8bbfd948de06faa3b439d73019544dc5d4d Mon Sep 17 00:00:00 2001 From: Caleb Cox Date: Tue, 19 Nov 2024 14:22:57 -0600 Subject: [PATCH] fixup! Add TestRouter to tests --- .../ExpectedMonthlyTotalReportTable.test.tsx | 44 ++++++++++--------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/src/components/Reports/ExpectedMonthlyTotalReport/Table/ExpectedMonthlyTotalReportTable.test.tsx b/src/components/Reports/ExpectedMonthlyTotalReport/Table/ExpectedMonthlyTotalReportTable.test.tsx index ffd91b239..f54431717 100644 --- a/src/components/Reports/ExpectedMonthlyTotalReport/Table/ExpectedMonthlyTotalReportTable.test.tsx +++ b/src/components/Reports/ExpectedMonthlyTotalReport/Table/ExpectedMonthlyTotalReportTable.test.tsx @@ -20,16 +20,18 @@ describe('ExpectedMonthlyTotalReportTable', () => { it('renders empty', async () => { const empty: ExpectedDonationRowFragment[] = []; const { queryByRole } = render( - - - , + + + + + , ); expect(queryByRole('button')).not.toBeInTheDocument(); @@ -52,16 +54,18 @@ describe('ExpectedMonthlyTotalReportTable', () => { }); const { queryAllByRole, getAllByTestId, getByText, getByTestId } = render( - - - , + + + + + , ); expect(queryAllByRole('button')[0]).toBeInTheDocument();