UNPKG

@universis/common

Version:

Universis - common directives and services

27 lines (26 loc) 969 B
import { RequestMatch, TestRequest } from '@angular/common/http/testing'; import { HttpRequest } from '@angular/common/http'; import * as i0 from "@angular/core"; export declare class ApiTestingController { private _match; private readonly matches; constructor(); /** * Prepares a request mapper based on the given request match * @param match */ match(match: RequestMatch): ApiTestingController; /** * Maps a request (based on an in-process request match) * with an instance of TestRequest class * @param mapper */ map(mapper: (request: TestRequest) => void): ApiTestingController; /** * Finds a request mapper based on the given request match * @param req */ find(req: HttpRequest<any>): ((request: TestRequest) => void) | undefined; static ɵfac: i0.ɵɵFactoryDeclaration<ApiTestingController, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ApiTestingController>; }