Skip to content

Commit

Permalink
increase test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
devinleighsmith committed Oct 30, 2023
1 parent ec71333 commit 79535fd
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});

0 comments on commit 79535fd

Please sign in to comment.