From 79535fdb57ad21b01196592da2c0d9e5bb59856b Mon Sep 17 00:00:00 2001 From: devinleighsmith Date: Mon, 30 Oct 2023 10:34:15 -0700 Subject: [PATCH] increase test coverage. --- .../mapSideBar/acquisition/AcquisitionView.test.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/frontend/src/features/mapSideBar/acquisition/AcquisitionView.test.tsx b/source/frontend/src/features/mapSideBar/acquisition/AcquisitionView.test.tsx index 7bc7dd8613..f8ac7c6efb 100644 --- a/source/frontend/src/features/mapSideBar/acquisition/AcquisitionView.test.tsx +++ b/source/frontend/src/features/mapSideBar/acquisition/AcquisitionView.test.tsx @@ -235,4 +235,13 @@ describe('AcquisitionView component', () => { expect(tab).toBeVisible(); expect(tab).toHaveClass('active'); }); + + it(`should display an error message when the error prop is set.`, async () => { + const { getByText } = await act(() => setup({ ...DEFAULT_PROPS, error: {} } as any)); + expect( + getByText( + 'Failed to load Acquisition File. Check the detailed error in the top right for more details.', + ), + ).toBeVisible(); + }); });