Skip to content

Commit fc1a803

Browse files
committed
Added isOfficialCourse field in backend tests
1 parent 0c7526b commit fc1a803

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/commons/sagas/__tests__/BackendSaga.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ const mockCourseConfiguration1: CourseConfiguration = {
137137
sourceChapter: Chapter.SOURCE_1,
138138
sourceVariant: Variant.DEFAULT,
139139
moduleHelpText: 'Help text',
140-
assetsPrefix: ''
140+
assetsPrefix: '',
141+
isOfficialCourse: false
141142
};
142143

143144
const mockCourseRegistration2: CourseRegistration = {
@@ -169,7 +170,8 @@ const mockCourseConfiguration2: CourseConfiguration = {
169170
sourceChapter: Chapter.SOURCE_4,
170171
sourceVariant: Variant.DEFAULT,
171172
moduleHelpText: 'Help text',
172-
assetsPrefix: ''
173+
assetsPrefix: '',
174+
isOfficialCourse: false
173175
};
174176

175177
const mockAssessmentConfigurations: AssessmentConfiguration[] = [
@@ -936,7 +938,8 @@ describe('Test UPDATE_COURSE_CONFIG action', () => {
936938
sourceChapter: Chapter.SOURCE_4,
937939
sourceVariant: Variant.DEFAULT,
938940
moduleHelpText: 'Help',
939-
assetsPrefix: ''
941+
assetsPrefix: '',
942+
isOfficialCourse: false
940943
};
941944

942945
test('when course config is changed', () => {
@@ -1034,7 +1037,8 @@ describe('Test CREATE_COURSE action', () => {
10341037
enableExamMode: false,
10351038
sourceChapter: Chapter.SOURCE_1,
10361039
sourceVariant: Variant.DEFAULT,
1037-
moduleHelpText: 'Help Text'
1040+
moduleHelpText: 'Help Text',
1041+
isOfficialCourse: false
10381042
};
10391043
const user = mockUser;
10401044
const courseConfiguration = mockCourseConfiguration1;

0 commit comments

Comments
 (0)