Skip to content

Commit

Permalink
Add a test covering default status badge text.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Jan 13, 2021
1 parent f74430c commit 33da4f6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ describe('ExecutedStep', () => {
expect(getByText(expectedStatus));
});

it('renders a null string for bad status input', () => {
step.synthetics = {
payload: { status: 'somegarbage' },
};
const { getByText } = render(<ExecutedStep index={3} step={step} checkGroup={'fake-group'} />);
expect(getByText('4.'));
});

it('renders accordion for step', () => {
step.synthetics = {
payload: {
Expand Down

0 comments on commit 33da4f6

Please sign in to comment.