From fbaa1968b7c596ccb63ea8b4be1d3bd92eda50d8 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 9 Apr 2012 14:27:14 -0700 Subject: chore($browser): remove the addJs method this was never meant to be a public api used by apps. I refactored the code to hide the functionality. BREAKING CHANGE: $browser.addJs method was removed apps that depended on this functionality should either use many of the existing script loaders or create a simple helper method specific to the app. --- test/ngMock/angular-mocksSpec.js | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'test/ngMock/angular-mocksSpec.js') diff --git a/test/ngMock/angular-mocksSpec.js b/test/ngMock/angular-mocksSpec.js index c656e940..4b2666b7 100644 --- a/test/ngMock/angular-mocksSpec.js +++ b/test/ngMock/angular-mocksSpec.js @@ -3,28 +3,6 @@ describe('ngMock', function() { var noop = angular.noop; - describe('$browser', function() { - - describe('addJs', function() { - - it('should store url, done', inject(function($browser) { - var url = 'some.js', - done = angular.noop; - - $browser.addJs(url, done); - - var script = $browser.$$scripts.shift(); - expect(script.url).toBe(url); - expect(script.done).toBe(done); - })); - - - it('should return the script object', inject(function($browser) { - expect($browser.addJs('some.js', null, noop)).toBe($browser.$$scripts[0]); - })); - }); - }); - describe('TzDate', function() { -- cgit v1.2.3