From 47b3ecd9a3c0d61b733b78e096d299c54c9ff39d Mon Sep 17 00:00:00 2001 From: Don Denton Date: Sun, 16 Jul 2017 12:20:07 -0500 Subject: [PATCH] docs(http): fix "Expecting and answering requests" example mistake Possibly overlooked testing documentation mistake fixed: - `http.get('/data')` probably ought to be paired with `httpMock.expectOne('/data')` instead of `httpMock.expectOne('/data')`. --- aio/content/guide/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/http.md b/aio/content/guide/http.md index 9011cc2161..92362b4554 100644 --- a/aio/content/guide/http.md +++ b/aio/content/guide/http.md @@ -598,7 +598,7 @@ it('expects a GET request', inject([HttpClient, HttpTestingController], (http: H // At this point, the request is pending, and no response has been // sent. The next step is to expect that the request happened. - const req = httpMock.expectOne('/test'); + const req = httpMock.expectOne('/data'); // If no request with that URL was made, or if multiple requests match, // expectOne() would throw. However this test makes only one request to