@@ -18,7 +18,7 @@ import executeThunk from '../../test-utils';
1818import { getCohortsApiUrl } from '../cohorts/data/api' ;
1919import fetchCourseCohorts from '../cohorts/data/thunks' ;
2020import DiscussionContext from '../common/context' ;
21- import { getCourseConfigApiUrl } from '../data/api' ;
21+ import { getCourseConfigApiUrl , getCourseSettingsApiUrl } from '../data/api' ;
2222import fetchCourseConfig from '../data/thunks' ;
2323import DiscussionContent from '../discussions-home/DiscussionContent' ;
2424import { getThreadsApiUrl } from '../posts/data/api' ;
@@ -37,6 +37,7 @@ import '../topics/data/__factories__';
3737import '../cohorts/data/__factories__' ;
3838
3939const courseConfigApiUrl = getCourseConfigApiUrl ( ) ;
40+ const courseSettingsApiUrl = getCourseSettingsApiUrl ( ) ;
4041const commentsApiUrl = getCommentsApiUrl ( ) ;
4142const threadsApiUrl = getThreadsApiUrl ( ) ;
4243const discussionPostId = 'thread-1' ;
@@ -105,7 +106,7 @@ async function setupCourseConfig() {
105106 { code : 'reason-2' , label : 'reason 2' } ,
106107 ] ,
107108 } ) ;
108- axiosMock . onGet ( `${ courseConfigApiUrl } ${ courseId } /settings` ) . reply ( 200 , { } ) ;
109+ axiosMock . onGet ( `${ courseSettingsApiUrl } ${ courseId } /settings` ) . reply ( 200 , { } ) ;
109110 await executeThunk ( fetchCourseConfig ( courseId ) , store . dispatch , store . getState ) ;
110111}
111112
0 commit comments