Angulars $httpBackend not pure unit testing? <p>Angular advocates the use of <a href="http://docs.angularjs.org/api/ngMock.%24httpBackend" rel="nofollow">$httpBackend</a> to test your service. Doesn't that break the principle of unit testing since it also tests angular internals? </p> <p>Shouldn't we rather test with a mocked $resource (or $http if that's what you use)?</p> <p>Is this just for convenience?</p>