E2E mock $httpBackend doesn’t actually passThrough for me
I stumbled on the same problem but instead of implementing a rich API or replacing the original angular-mocks simply added in the following helper: 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(); }; }]); It patches two issues that prevent an HTTP … Read more