ngmodule
Configures HttpClientTestingBackend as the HttpBackend used by HttpClient.
class HttpClientTestingModule {
} Inject HttpTestingController to expect and flush requests in your tests.
| Provider |
|---|
provideHttpClientTesting() |
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/common/http/testing/HttpClientTestingModule