i'm doing protractor tests and using angular-mocks to "fake" requests. In my app where is one place where image should be displayed:
<img ng-src="api/documents/image/{{file.Id}}">
Is it possible to intrcept the request for getting image data and replace it by some fake image data, in the way things done with json?
$httpBackend.whenGET('api/documents/123').respond(200,[]);
Currently i'm getting broken image icons on the screen, which i prefer to be replaced by some fake images. I hope that it is possible...
Kind regards