UNPKG

swagger-tests

Version:

A typescript framework for testing an api against a swagger 3.0 json file.

23 lines (22 loc) 888 B
import { AttributeSupport } from "./attribute.support"; import { OperationSupport } from './operation.support'; import { RequestSupport } from "./request.support"; import { ResponseSupport } from "./response.support"; import { BeforeSupport } from "./before.support"; import { AfterSupport } from "./after.support"; import { AxiosRequestConfig } from 'axios'; export declare abstract class ApiSupport { protected debug: boolean; protected constructor(operationStr: string, debug?: boolean); readonly modelName: string; readonly attributes: AttributeSupport; readonly operation: OperationSupport; axiosConfig: AxiosRequestConfig; protected before: BeforeSupport; protected after: AfterSupport; protected request: RequestSupport; protected response: ResponseSupport; readonly route: string; test(): Promise<any>; step(name: any): void; }