Answer the question
In order to leave comments, you need to log in
How to properly loop mock requests in angular tests?
for (var i = 0; i < depRequests.length; i++) {
$i.httpBackend.expectGET(depRequests[i].path).respond(200, depRequests[i].data);
}
$i.httpBackend.flush();
scope.$apply();
Error: Unsatisfied requests: GET
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question