diff --git a/modules/scrollfix/test/scrollfixSpec.js b/modules/scrollfix/test/scrollfixSpec.js index 7c93a79d..cc4e4231 100644 --- a/modules/scrollfix/test/scrollfixSpec.js +++ b/modules/scrollfix/test/scrollfixSpec.js @@ -11,29 +11,29 @@ describe('uiScrollfix', function () { })); describe('compiling this directive', function () { - it('should bind to window "scroll" event with a ui-scrollfix namespace', function () { + it('should bind to window "scroll" event', function () { spyOn($.fn, 'bind'); $compile('
')(scope); expect($.fn.bind).toHaveBeenCalled(); - expect($.fn.bind.mostRecentCall.args[0]).toBe('scroll.ui-scrollfix'); + expect($.fn.bind.mostRecentCall.args[0]).toBe('scroll'); }); }); describe('scrolling the window', function () { it('should add the ui-scrollfix class if the offset is greater than specified', function () { var element = $compile('')(scope); - angular.element($window).trigger('scroll.ui-scrollfix'); + angular.element($window).trigger('scroll'); expect(element.hasClass('ui-scrollfix')).toBe(true); }); it('should remove the ui-scrollfix class if the offset is less than specified (using absolute coord)', function () { var element = $compile('')(scope); - angular.element($window).trigger('scroll.ui-scrollfix'); + angular.element($window).trigger('scroll'); expect(element.hasClass('ui-scrollfix')).toBe(false); }); it('should remove the ui-scrollfix class if the offset is less than specified (using relative coord)', function () { var element = $compile('')(scope); - angular.element($window).trigger('scroll.ui-scrollfix'); + angular.element($window).trigger('scroll'); expect(element.hasClass('ui-scrollfix')).toBe(false); }); }); -}); \ No newline at end of file +});