feat(ngMock): describe unflushed http requests
The current implementation of $httpBackend.verifyNoOutstandingRequest
gives an integer number describing how many requests are unflushed.
While it's superficially easy to solve test errors from that message
by simply adding an additional $httpBackend.flush(), if a developer
is truly not expecting the code to make further requests this is
not ideal.
This change explicitly prints out which additional requests remain
unflushed in the error message, helping her determine if the code
needs changing, or if an additional flush is appropriate.
Before this change:
Unflushed requests: 1
After this change:
Unflushed requests: 1
GET /some
Closes #10596
Closes #15928 J
Jacob Hansson committed
080357e906e2ec34e669091ef345fc4442e23ea0
Parent: 69c3faf
Committed by Martin Staffa <mjstaffa@googlemail.com>
on 4/21/2017, 11:39:36 AM