Skip to content

Commit

Permalink
test: remove redundant changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrendalath committed Apr 30, 2024
1 parent 40d5a33 commit e57c355
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions cms/static/js/spec/views/pages/course_outline_spec.js
Expand Up @@ -42,8 +42,7 @@ describe('CourseOutlinePage', function() {
user_partition_info: {},
highlights_enabled: true,
highlights_enabled_for_messaging: false,
show_delete_button: true,
completion_tracking_enabled: true,
show_delete_button: true
}, options, {child_info: {children: children}});
};

Expand Down Expand Up @@ -71,7 +70,6 @@ describe('CourseOutlinePage', function() {
user_partition_info: {},
highlights_enabled: true,
highlights_enabled_for_messaging: false,
completion_tracking_enabled: true,
show_delete_button: true
}, options, {child_info: {children: children}});
};
Expand All @@ -98,7 +96,6 @@ describe('CourseOutlinePage', function() {
user_partition_info: {},
highlights: [],
highlights_enabled: true,
completion_tracking_enabled: true,
show_delete_button: true
}, options, {child_info: {children: children}});
};
Expand Down Expand Up @@ -130,7 +127,6 @@ describe('CourseOutlinePage', function() {
user_partitions: [],
group_access: {},
user_partition_info: {},
completion_tracking_enabled: true,
show_delete_button: true
}, options, {child_info: {children: children}});
};
Expand All @@ -150,7 +146,6 @@ describe('CourseOutlinePage', function() {
user_partitions: [],
group_access: {},
user_partition_info: {},
completion_tracking_enabled: true,
show_delete_button: true
}, options);
};
Expand Down Expand Up @@ -225,7 +220,6 @@ describe('CourseOutlinePage', function() {
createCourseOutlinePage = function(test, courseJSON, createOnly) {
requests = AjaxHelpers.requests(test);
model = new XBlockOutlineInfo(courseJSON, {parse: true});
console.warn("course:", model)
outlinePage = new CourseOutlinePage({
model: model,
el: $('#content')
Expand Down Expand Up @@ -322,7 +316,7 @@ describe('CourseOutlinePage', function() {
'course-highlights-enable', 'optional-completion-editor'
]);
appendSetFixtures(mockOutlinePage);
mockCourseJSON = createMockCourseJSON({completion_tracking_enabled: true}, [
mockCourseJSON = createMockCourseJSON({}, [
createMockSectionJSON({}, [
createMockSubsectionJSON({}, [
createMockVerticalJSON()
Expand Down Expand Up @@ -950,7 +944,6 @@ describe('CourseOutlinePage', function() {
createCourseOutlinePage(this, mockCourseJSON, false);
outlinePage.$('.section-header-actions .configure-button').click();
$('#start_date').val('1/2/2015');

// Section release date can't be cleared.
expect($('.wrapper-modal-window .action-clear')).not.toExist();

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

});
Expand Down

0 comments on commit e57c355

Please sign in to comment.