diff --git a/.eslintrc.js b/.eslintrc.js index 58d6ce8..2852b40 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,6 +5,7 @@ const config = createConfig('eslint', { 'import/no-named-as-default': 'off', 'import/no-named-as-default-member': 'off', 'import/no-self-import': 'off', + 'import/no-import-module-exports': 'off', 'spaced-comment': ['error', 'always', { 'block': { 'exceptions': ['*'] } }], }, }); diff --git a/src/containers/CourseList/NoCoursesView/__snapshots__/index.test.jsx.snap b/src/containers/CourseList/NoCoursesView/__snapshots__/index.test.jsx.snap index 894f016..8f6fabd 100644 --- a/src/containers/CourseList/NoCoursesView/__snapshots__/index.test.jsx.snap +++ b/src/containers/CourseList/NoCoursesView/__snapshots__/index.test.jsx.snap @@ -17,7 +17,7 @@ exports[`NoCoursesView snapshot 1`] = `

diff --git a/src/widgets/RecommendationsPanel/LoadedView.test.jsx b/src/widgets/RecommendationsPanel/LoadedView.test.jsx index 54a29b7..20b7a4b 100644 --- a/src/widgets/RecommendationsPanel/LoadedView.test.jsx +++ b/src/widgets/RecommendationsPanel/LoadedView.test.jsx @@ -5,17 +5,20 @@ import LoadedView from './LoadedView'; import mockData from './mockData'; import messages from './messages'; -jest.mock('./components/CourseCard', () => 'CourseCard'); jest.mock('hooks', () => ({ reduxHooks: { usePlatformSettingsData: () => ({ - courseSearchUrl: 'course-search-url', + courseSearchUrl: '/course-search-url', }), }, })); +jest.mock('data/services/lms/urls', () => ({ + baseAppUrl: (url) => (`http://localhost:18000${url}`), +})); jest.mock('./track', () => ({ findCoursesWidgetClicked: (href) => jest.fn().mockName(`track.findCoursesWidgetClicked('${href}')`), })); +jest.mock('./components/CourseCard', () => 'CourseCard'); describe('RecommendationsPanel LoadedView', () => { const props = { diff --git a/src/widgets/RecommendationsPanel/__snapshots__/LoadedView.test.jsx.snap b/src/widgets/RecommendationsPanel/__snapshots__/LoadedView.test.jsx.snap index c555423..c04c032 100644 --- a/src/widgets/RecommendationsPanel/__snapshots__/LoadedView.test.jsx.snap +++ b/src/widgets/RecommendationsPanel/__snapshots__/LoadedView.test.jsx.snap @@ -64,9 +64,9 @@ exports[`RecommendationsPanel LoadedView snapshot with personalize recommendatio >