You may want to try
angular.module('httpReal', ['ng']) .config(['$provide', function($provide) { $provide.decorator('$httpBackend', function() { return angular.injector(['ng']).get('$httpBackend'); }); }]) .service('httpReal', ['$rootScope', function($rootScope) { this.submit = function() { $rootScope.$digest(); }; }]);
This way you can restore httpBackend. For more details please refer: E2E mock $httpBackend doesn't actually passThrough for me