This repository has been archived by the owner on Feb 18, 2021. It is now read-only.
review to work with angularjs 1.2.10+
// provider
// You can also just use provide to blanket replace $httpBackend
// with the mock
ngMockBackend.config(
['$provide',
function($provide) {
var obj = new angular.mock.$HttpBackendProvider(),
createHttpBackendMock = obj.$get[1];
// Decorate by passing in the constructor for mock $httpBackend
$provide.decorator('$httpBackend', createHttpBackendMock);
}]);