Skip to content

Commit 2ef2f17

Browse files
committed
fix: test
1 parent e8c127e commit 2ef2f17

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/containers/CourseCard/components/CourseCardActions/ResumeButton.test.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useCourseTrackingEvent, useCourseData } from 'hooks';
66
import track from 'tracking';
77
import useActionDisabledState from '../hooks';
88
import ResumeButton from './ResumeButton';
9+
import { baseAppUrl } from 'data/services/lms/urls';
910

1011
const authOrgId = 'auth-org-id';
1112
jest.mock('data/hooks', () => ({
@@ -40,7 +41,7 @@ jest.mock('./ActionButton/hooks', () => jest.fn(() => false));
4041

4142
useCourseData.mockReturnValue({
4243
enrollment: { mode: 'executive-education' },
43-
courseRun: { resumeUrl: 'home-url' },
44+
courseRun: { resumeUrl: '/resume-url' },
4445
});
4546

4647
describe('ResumeButton', () => {
@@ -84,7 +85,7 @@ describe('ResumeButton', () => {
8485
expect(useCourseTrackingEvent).toHaveBeenCalledWith(
8586
track.course.enterCourseClicked,
8687
props.cardId,
87-
`home-url?org_id=${authOrgId}`,
88+
baseAppUrl(`/resume-url?org_id=${authOrgId}`),
8889
);
8990
});
9091
});

0 commit comments

Comments
 (0)