Skip to content

Commit

Permalink
Fix second unit test with orphaned expect()
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin-gov committed Aug 16, 2018
1 parent cec3b67 commit 58de656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/js/review/SubmitController.unit.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,13 @@ describe('Schemaform review: SubmitController', () => {
<SubmitController
form={form}
formConfig={formConfig}
pageList={['chapter1', 'chatper2']}
pageList={['chapter1', 'chapter2']}
router={router}
submission={submission}/>
).instance();

tree.goBack();

expect(router.push.calledWith('previous-page')).to.be.true;
expect(router.push.called).to.be.true;
});
});

0 comments on commit 58de656

Please sign in to comment.