mockttp
Version:
Mock HTTP server for testing HTTP clients and stubbing webservices
12 lines • 557 B
TypeScript
import { MockedEndpointData, MockedEndpoint, CompletedRequest } from "../types";
export declare class MockedEndpointClient implements MockedEndpoint {
readonly id: string;
private explanation;
private endpointDataGetter;
constructor(id: string, explanation: string | undefined, endpointDataGetter: () => Promise<MockedEndpointData | null>);
private getMockedEndpointData;
getSeenRequests(): Promise<CompletedRequest[]>;
isPending(): Promise<boolean>;
toString(): string;
}
//# sourceMappingURL=mocked-endpoint-client.d.ts.map