Controller to be injected into tests, that allows for mocking and flushing of requests.
abstract class HttpTestingController { abstract match(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean)): TestRequest[]; abstract expectOne(url: string, description?: string | undefined): TestRequest; abstract expectOne(params: RequestMatch, description?: string | undefined): TestRequest; abstract expectOne(matchFn: (req: HttpRequest<any>) => boolean, description?: string | undefined): TestRequest; abstract expectOne(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string | undefined): TestRequest; abstract expectNone(url: string, description?: string | undefined): void; abstract expectNone(params: RequestMatch, description?: string | undefined): void; abstract expectNone(matchFn: (req: HttpRequest<any>) => boolean, description?: string | undefined): void; abstract expectNone(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string | undefined): void; abstract verify(opts?: { ignoreCancelled?: boolean | undefined; } | undefined): void;}