@@ -18,7 +18,7 @@ import executeThunk from '../../test-utils';
18
18
import { getCohortsApiUrl } from '../cohorts/data/api' ;
19
19
import fetchCourseCohorts from '../cohorts/data/thunks' ;
20
20
import DiscussionContext from '../common/context' ;
21
- import { getCourseConfigApiUrl } from '../data/api' ;
21
+ import { getCourseConfigApiUrl , getCourseSettingsApiUrl } from '../data/api' ;
22
22
import fetchCourseConfig from '../data/thunks' ;
23
23
import DiscussionContent from '../discussions-home/DiscussionContent' ;
24
24
import { getThreadsApiUrl } from '../posts/data/api' ;
@@ -37,6 +37,7 @@ import '../topics/data/__factories__';
37
37
import '../cohorts/data/__factories__' ;
38
38
39
39
const courseConfigApiUrl = getCourseConfigApiUrl ( ) ;
40
+ const courseSettingsApiUrl = getCourseSettingsApiUrl ( ) ;
40
41
const commentsApiUrl = getCommentsApiUrl ( ) ;
41
42
const threadsApiUrl = getThreadsApiUrl ( ) ;
42
43
const discussionPostId = 'thread-1' ;
@@ -105,7 +106,7 @@ async function setupCourseConfig() {
105
106
{ code : 'reason-2' , label : 'reason 2' } ,
106
107
] ,
107
108
} ) ;
108
- axiosMock . onGet ( `${ courseConfigApiUrl } ${ courseId } /settings` ) . reply ( 200 , { } ) ;
109
+ axiosMock . onGet ( `${ courseSettingsApiUrl } ${ courseId } /settings` ) . reply ( 200 , { } ) ;
109
110
await executeThunk ( fetchCourseConfig ( courseId ) , store . dispatch , store . getState ) ;
110
111
}
111
112
0 commit comments