angular-docs-cn/packages/http/testing/src
Bartosz Wyporkiewicz 637ae135c5 docs(http): fixed example unit test for error catching (#25306)
The example unit test should test the service when the backend
application is not available, by providing a mock error response.
Although, the test will
fail as the mock response from the server is valid (it does not simulate
a
error response, but valid response with an error status 404).
This merge request fix this issue by replacing MockResponse with
MockError

This PR resolves 19499 issue

PR Close #25306
2018-08-06 11:31:57 -07:00
..
mock_backend.ts docs(http): fixed example unit test for error catching (#25306) 2018-08-06 11:31:57 -07:00
testing.ts build: fix file paths after moving modules/@angular/* to packages/* 2017-03-08 16:29:28 -08:00