Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 846fe1b

Browse files
danielmbarlowcaitp
authored andcommitted
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
1 parent f4648ab commit 846fe1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/content/tutorial/step_05.ngdoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,9 @@ the response is received:
236236
```
237237

238238
* We flush the request queue in the browser by calling `$httpBackend.flush()`. This causes the
239-
promise returned by the `$http` service to be resolved with the trained response.
239+
promise returned by the `$http` service to be resolved with the trained response. See
240+
'Flushing HTTP requests' in the {@link ngMock.$httpBackend mock $httpBackend} documentation for
241+
a full explanation of why this is necessary.
240242

241243
* We make the assertions, verifying that the phone model now exists on the scope.
242244

0 commit comments

Comments
 (0)