Merge pull request #6586 from ntgussoni/feature/show-catalog-errors

Show catalog-parsing related errors in entity page
This commit is contained in:
Tim Hansen
2021-07-28 14:08:17 -06:00
committed by GitHub
15 changed files with 347 additions and 40 deletions
@@ -74,7 +74,7 @@ describe('<FossaCard />', () => {
fossaApi.getFindingSummary.mockRejectedValue(new Error('My Error'));
const { getByText } = await renderInTestApp(
const { getAllByText } = await renderInTestApp(
<Wrapper>
<EntityProvider entity={entity}>
<FossaCard />
@@ -82,7 +82,7 @@ describe('<FossaCard />', () => {
</Wrapper>,
);
expect(getByText(/Warning: My Error/i)).toBeInTheDocument();
expect(getAllByText(/Error: My Error/i).length).not.toBe(0);
});
it('shows empty', async () => {