HttpClientTestingModulelink
Configures HttpClientTestingBackend
as the HttpBackend
used by HttpClient
.
说明
Inject HttpTestingController
to expect and flush requests in your tests.
Configures HttpClientTestingBackend
as the HttpBackend
used by HttpClient
.
Inject HttpTestingController
to expect and flush requests in your tests.