Skip to content

Commit e57c355

Browse files
committed
test: remove redundant changes
1 parent 40d5a33 commit e57c355

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

cms/static/js/spec/views/pages/course_outline_spec.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ describe('CourseOutlinePage', function() {
4242
user_partition_info: {},
4343
highlights_enabled: true,
4444
highlights_enabled_for_messaging: false,
45-
show_delete_button: true,
46-
completion_tracking_enabled: true,
45+
show_delete_button: true
4746
}, options, {child_info: {children: children}});
4847
};
4948

@@ -71,7 +70,6 @@ describe('CourseOutlinePage', function() {
7170
user_partition_info: {},
7271
highlights_enabled: true,
7372
highlights_enabled_for_messaging: false,
74-
completion_tracking_enabled: true,
7573
show_delete_button: true
7674
}, options, {child_info: {children: children}});
7775
};
@@ -98,7 +96,6 @@ describe('CourseOutlinePage', function() {
9896
user_partition_info: {},
9997
highlights: [],
10098
highlights_enabled: true,
101-
completion_tracking_enabled: true,
10299
show_delete_button: true
103100
}, options, {child_info: {children: children}});
104101
};
@@ -130,7 +127,6 @@ describe('CourseOutlinePage', function() {
130127
user_partitions: [],
131128
group_access: {},
132129
user_partition_info: {},
133-
completion_tracking_enabled: true,
134130
show_delete_button: true
135131
}, options, {child_info: {children: children}});
136132
};
@@ -150,7 +146,6 @@ describe('CourseOutlinePage', function() {
150146
user_partitions: [],
151147
group_access: {},
152148
user_partition_info: {},
153-
completion_tracking_enabled: true,
154149
show_delete_button: true
155150
}, options);
156151
};
@@ -225,7 +220,6 @@ describe('CourseOutlinePage', function() {
225220
createCourseOutlinePage = function(test, courseJSON, createOnly) {
226221
requests = AjaxHelpers.requests(test);
227222
model = new XBlockOutlineInfo(courseJSON, {parse: true});
228-
console.warn("course:", model)
229223
outlinePage = new CourseOutlinePage({
230224
model: model,
231225
el: $('#content')
@@ -322,7 +316,7 @@ describe('CourseOutlinePage', function() {
322316
'course-highlights-enable', 'optional-completion-editor'
323317
]);
324318
appendSetFixtures(mockOutlinePage);
325-
mockCourseJSON = createMockCourseJSON({completion_tracking_enabled: true}, [
319+
mockCourseJSON = createMockCourseJSON({}, [
326320
createMockSectionJSON({}, [
327321
createMockSubsectionJSON({}, [
328322
createMockVerticalJSON()
@@ -950,7 +944,6 @@ describe('CourseOutlinePage', function() {
950944
createCourseOutlinePage(this, mockCourseJSON, false);
951945
outlinePage.$('.section-header-actions .configure-button').click();
952946
$('#start_date').val('1/2/2015');
953-
954947
// Section release date can't be cleared.
955948
expect($('.wrapper-modal-window .action-clear')).not.toExist();
956949

@@ -2556,7 +2549,7 @@ describe('CourseOutlinePage', function() {
25562549
it('hides discussion settings if unit level discussions are disabled', function() {
25572550
getUnitStatus({}, {unit_level_discussions: false});
25582551
outlinePage.$('.outline-unit .configure-button').click();
2559-
expect($('.modal-section .edit-discussion').length).toBe(0);
2552+
expect($('.modal-section .edit-discussion')).not.toExist();
25602553
});
25612554

25622555
});

0 commit comments

Comments
 (0)