flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
12 lines (11 loc) • 526 B
TypeScript
import { iResponse, GenericResponse, ResponseType, NormalizedResponse } from "./response";
import { Scenario } from "./scenario";
import { Value } from './value';
export declare class ScriptResponse extends GenericResponse implements iResponse {
readonly typeName: string;
readonly type: ResponseType;
constructor(scenario: Scenario, response: NormalizedResponse);
evaluate(context: any, callback: Function): Promise<any>;
find(path: string): Promise<Value>;
findAll(path: string): Promise<Value[]>;
}