Skip to content

Commit

Permalink
updates the test
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanOXDi committed Dec 5, 2024
1 parent 550a390 commit b2fdfa0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ describe('LessonResourceSelectionPage', () => {

const exitRoute = () => button.props().to.name;
// Exit link goes to Lesson Summary page by default
expect(exitRoute()).toEqual(PageNames.LESSON_SUMMARY);
expect(exitRoute()).toBe(PageNames.LESSON_SUMMARY);
expect(exitRoute()).toBe(PageNames.LESSON_PREVIEW_SELECTED_RESOURCES);

// Exit link goes to report page if that's in the URL
await router.replace({ query: { last: 'LESSON_SUMMARY' } });
Expand Down

0 comments on commit b2fdfa0

Please sign in to comment.