diff --git a/src/angular-mocks.js b/src/angular-mocks.js index fc318064fcc3..f0313b25abca 100644 --- a/src/angular-mocks.js +++ b/src/angular-mocks.js @@ -203,7 +203,9 @@ MockBrowser.prototype = { } return this.cookieHash; } - } + }, + + addJs: function(){} }; angular.service('$browser', function(){ diff --git a/test/AngularSpec.js b/test/AngularSpec.js index 444b9448d8a2..b58705cc67fb 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -454,9 +454,8 @@ describe('angular', function(){ return this.childNodes[1]; }; - angularInit({autobind: 'child'}, dom); - delete dom.getElementById; //make IE and sortedHtml happy + angularInit({autobind: 'child'}, dom); expect(sortedHtml(dom)).toEqual('