Hi,
I've been googling around trying to figure out this, but none of the solutions I found were very satisfying.
This is what I want to do, in unit test, not e2e.
- Make fixtures available via http using this in karma.conf.
{pattern: 'test/fixtures/**/*.json', watched: false, served: true, included: false},
- Then when I try to access this using the $http service, I found out that $httpBackend is blocking access to this files, and there seem to be no way to relax this policy.
- So I had to use an alternative js lib to be able to do a simple GET request(reqwest or zepto in my case, since I am not using jquery, other people were using jasmine-jquery).
I am wondering if I am missing something here, since the $http module is still --nearly--- at hand, that would be easier to be able to use it. Even easier would be to be able to proxy the $httpBackend response directly to a fixture.
Cheers.
Seb.