@angular/common/http/testing

入口点

主要

@angular/common

次要

@angular/common/http
@angular/common/http/testing
@angular/common/testing

导出列表

HttpTestingController

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

HttpClientTestingModule

Configures HttpClientTestingBackend as the HttpBackend used by HttpClient.

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.