UNPKG

@exodus/networking-spec

Version:

Platform-agnostic test suites for networking related features

12 lines (11 loc) 428 B
import type { CommonRequestInit, CommonResponse, HeadersInit, HttpClient } from '@exodus/networking-common/http'; type Request = { url: string; headers?: HeadersInit; }; interface MockAdapter { replyWith: (status: number, body?: any) => void; requests(): Request[]; } export declare function testsuite(getInstance: () => HttpClient<CommonRequestInit, CommonResponse>, mockAdapter: MockAdapter): void; export {};