Skip to content

Commit

Permalink
added empty state test
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSh committed Nov 7, 2022
1 parent 99177fa commit 602cf74
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,10 @@ describe('<CloudSummarySection />', () => {
);
expect(screen.getByTestId(DASHBOARD_COUNTER_CARDS.FAILING_FINDINGS)).toHaveTextContent('1M');
});

it('renders 0 as empty state', () => {
renderCloudSummarySection({ stats: { totalFailed: undefined } });

expect(screen.getByTestId(DASHBOARD_COUNTER_CARDS.FAILING_FINDINGS)).toHaveTextContent('0');
});
});

0 comments on commit 602cf74

Please sign in to comment.