Skip to content

Commit

Permalink
Refactor a test to remove redundant code.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Jan 13, 2021
1 parent 33da4f6 commit a621365
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ describe('ExecutedStep', () => {
['succeeded', 'Succeeded'],
['failed', 'Failed'],
['skipped', 'Skipped'],
['somegarbage', '4.'],
])('supplies status badge correct status', (status, expectedStatus) => {
step.synthetics = {
payload: { status },
Expand All @@ -59,14 +60,6 @@ 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 a621365

Please sign in to comment.