From f8a83c3c8197ef59ffd7d1caef58fb882ccfc291 Mon Sep 17 00:00:00 2001 From: "J. Degand" <70610011+jdegand@users.noreply.github.com> Date: Sun, 1 Sep 2024 00:32:15 -0400 Subject: [PATCH] docs(angular): add testing requests content (#6926) --- .../content/testing-requests@4xt0m5jkUqB4Z-krcFBuL.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/data/roadmaps/angular/content/testing-requests@4xt0m5jkUqB4Z-krcFBuL.md b/src/data/roadmaps/angular/content/testing-requests@4xt0m5jkUqB4Z-krcFBuL.md index 87b4b32f6..e070f05a3 100644 --- a/src/data/roadmaps/angular/content/testing-requests@4xt0m5jkUqB4Z-krcFBuL.md +++ b/src/data/roadmaps/angular/content/testing-requests@4xt0m5jkUqB4Z-krcFBuL.md @@ -1 +1,9 @@ -# Testing Requests \ No newline at end of file +# Testing Requests + +As for any external dependency, you must mock the HTTP backend so your tests can simulate interaction with a remote server. The `@angular/common/http/testing` library provides tools to capture requests made by the application, make assertions about them, and mock the responses to emulate your backend's behavior. + +Visit the following resources to learn more: + +- [@official@Angular Official Docs - Testing Requests](https://angular.dev/guide/http/testing) +- [@video@Import Http Client Testing Module and make Test call with the HttpClient](https://www.youtube.com/watch?v=Sgy_RRXC9As) +- [@video@HTTP | Angular Unit Testing Made Easy: Comprehensive Guide to HTTP Testing](https://www.youtube.com/watch?v=7rlwryYhGzs) \ No newline at end of file