I wanted to do a partial response assertion to a request, it took a little bit of digging but eventually realised that requestsMade() returns a promise.
The second attempt is the correct way, as provided by protractor-http-mock.. But this isn't clear in the documentation. If this is correct, I'll try and open a PR for it today.
I wanted to do a partial response assertion to a request, it took a little bit of digging but eventually realised that requestsMade() returns a promise.
Here's the initial behaviour I expected:
And the actual behaviour
The second attempt is the correct way, as provided by protractor-http-mock.. But this isn't clear in the documentation. If this is correct, I'll try and open a PR for it today.