You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
When executing callback (after xhr request), all exceptions are caught and just reported into $log.error().
That's not enough for testing !
Imagine this:
I'm testing controller / service or whatever. And there is xhr request and then, any exception in the callback !
Then the test passes, you have to explicitely check the $log service....
I already have a fix for this in the scope branch. I simply rethrow any log.error messages (and also allow the tester to log only if that is what he wants)
https://github.com/angular/angular.js/blob/master/src/service/xhr.js#L154
When executing callback (after xhr request), all exceptions are caught and just reported into $log.error().
That's not enough for testing !
Imagine this:
I'm testing controller / service or whatever. And there is xhr request and then, any exception in the callback !
Then the test passes, you have to explicitely check the $log service....
The text was updated successfully, but these errors were encountered: