I get that error since my app.config
file is included in my tests. It makes all my unit tests involving httpbackend fail. They usually look like this:
beforeEach(function(){
module('consumerApp');
inject(function($injector) {
httpBackend = $injector.get('$httpBackend');
});
});
describe('foo', function(){
it('does something', inject(function(Foo){
httpBackend.when("POST", URL).respond(json);
Foo.something();
httpBackend.flush();
expect(Foo.stuff).toEqual('done');
}));
});
I am not sure why the unit tests need to call my templates to run...