Skip to content

Commit

Permalink
Type fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Oct 1, 2020
1 parent 628e3a2 commit f4473da
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ describe('ExecutedStep', () => {
});

it('supplies status badge correct status', () => {
step.synthetics.payload = { status: 'THE_STATUS' };
step.synthetics = {
payload: { status: 'THE_STATUS' },
};
expect(shallowWithIntl(<ExecutedStep index={3} step={step} />).find('StatusBadge'))
.toMatchInlineSnapshot(`
<StatusBadge
Expand All @@ -70,12 +72,14 @@ describe('ExecutedStep', () => {
});

it('renders accordions for step, error message, and error stack script', () => {
step.synthetics.error = {
message: 'There was an error executing the step.',
stack: 'some.stack.trace.string',
};
step.synthetics.payload = {
source: 'const someVar = "the var"',
step.synthetics = {
error: {
message: 'There was an error executing the step.',
stack: 'some.stack.trace.string',
},
payload: {
source: 'const someVar = "the var"',
},
};

expect(shallowWithIntl(<ExecutedStep index={3} step={step} />).find('Accordion'))
Expand Down

0 comments on commit f4473da

Please sign in to comment.