remove audit course mode

removed print statement
This commit is contained in:
Zia Fazal
2015-11-25 14:38:38 +05:00
parent 5043b46525
commit aa529fe0b6
4 changed files with 20 additions and 11 deletions

View File

@@ -49,7 +49,7 @@ function(_, $, Course, CertificatePreview, TemplateHelpers, ViewHelpers, AjaxHel
appendSetFixtures('<div class="preview-certificate nav-actions"></div>');
this.view = new CertificatePreview({
el: $('.preview-certificate'),
course_modes: ['test1', 'test2', 'test3', 'audit'],
course_modes: ['test1', 'test2', 'test3'],
certificate_web_view_url: '/users/1/courses/orgX/009/2016?preview=test1',
certificate_activation_handler_url: '/certificates/activation/'+ window.course.id,
is_active: true
@@ -58,11 +58,6 @@ function(_, $, Course, CertificatePreview, TemplateHelpers, ViewHelpers, AjaxHel
});
describe('Certificate preview', function() {
it('course mode "audit" should not be render in preview list', function () {
expect(this.view.course_modes.indexOf('audit') < 0).toBe(true);
});
it('course mode event should call when user choose a new mode', function () {
spyOn(this.view, 'courseModeChanged');
this.view.delegateEvents();

View File

@@ -27,8 +27,6 @@ function(_, gettext, BaseView, ViewUtils, NotificationView) {
},
render: function () {
// removing the course mode 'audit' from the preview list.
this.course_modes = _.without(this.course_modes, 'audit');
this.$el.html(this.template({
course_modes: this.course_modes,
certificate_web_view_url: this.certificate_web_view_url,