@angular/common/http/testing

入口点的导出

模块

HttpClientTestingModule

Configures HttpClientTestingBackend as the HttpBackend used by HttpClient.

HttpTestingController

Controller to be injected into tests, that allows for mocking and flushing of requests.

TestRequest

A mock requests that was received and is ready to be answered.

结构

RequestMatch

Defines a matcher for requests based on URL, method, or both.