docs(tutorial/step_05): explain need for $httpBackend.flush in tests

There is an excellent explanation for the need for this in the documentation that may be helpful to
tutorial users, so I added a link to it.

Closes #9919
This commit is contained in:
danielmbarlow
2014-11-05 08:23:24 +01:00
committed by Caitlin Potter
parent f4648abe03
commit 846fe1b3ef

View File

@@ -236,7 +236,9 @@ the response is received:
```
* We flush the request queue in the browser by calling `$httpBackend.flush()`. This causes the
promise returned by the `$http` service to be resolved with the trained response.
promise returned by the `$http` service to be resolved with the trained response. See
'Flushing HTTP requests' in the {@link ngMock.$httpBackend mock $httpBackend} documentation for
a full explanation of why this is necessary.
* We make the assertions, verifying that the phone model now exists on the scope.