diff --git a/lms/static/coffee/spec/calculator_spec.coffee b/lms/static/coffee/spec/calculator_spec.coffee index e57bff4a54..072d220a44 100644 --- a/lms/static/coffee/spec/calculator_spec.coffee +++ b/lms/static/coffee/spec/calculator_spec.coffee @@ -12,8 +12,8 @@ describe 'Calculator', -> it 'bind the help button', -> # These events are bind by $.hover() - expect($('div.help-wrapper a')).toHandleWith 'mouseenter', @calculator.helpToggle - expect($('div.help-wrapper a')).toHandleWith 'mouseleave', @calculator.helpToggle + expect($('div.help-wrapper a')).toHandleWith 'mouseover', @calculator.helpToggle + expect($('div.help-wrapper a')).toHandleWith 'mouseout', @calculator.helpToggle it 'prevent default behavior on help button', -> $('div.help-wrapper a').click (e) -> diff --git a/lms/static/coffee/spec/logger_spec.coffee b/lms/static/coffee/spec/logger_spec.coffee index bfad742de3..33f924362a 100644 --- a/lms/static/coffee/spec/logger_spec.coffee +++ b/lms/static/coffee/spec/logger_spec.coffee @@ -25,7 +25,7 @@ describe 'Logger', -> it 'send a request to log event', -> spyOn($, 'ajax') - $(window).trigger('onunload') + window.onunload() expect($.ajax).toHaveBeenCalledWith url: "#{Courseware.prefix}/event", data: