From a62c7b8b4eaba2979e19c3b0438d67fcdc5f9e1a Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 30 Aug 2012 16:25:02 -0700 Subject: test(locationSpec): fix broken tests after vojta's commit --- test/ng/locationSpec.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/ng/locationSpec.js b/test/ng/locationSpec.js index cdad1f1f..17ae13f3 100644 --- a/test/ng/locationSpec.js +++ b/test/ng/locationSpec.js @@ -1038,7 +1038,8 @@ describe('$location', function() { bind: function(event, handler) { expect(event).toEqual('click'); clickHandler = handler; - } + }, + unbind: angular.noop }); return function($browser) { $browser.url(base = 'http://server/'); @@ -1067,7 +1068,8 @@ describe('$location', function() { bind: function(event, handler) { expect(event).toEqual('click'); clickHandler = handler; - } + }, + unbind: angular.noop }); return function($browser) { $browser.url(base = 'http://server/'); -- cgit v1.2.3