Sarraf API
    Preparing search index...

    Interface MockFetch

    interface MockFetch {
        calls: MockRequest[];
        callsTo(method: string, pathOrRegex: string | RegExp): MockRequest[];
        reset(): void;
        (input: string, init: RequestInit): Promise<Response>;
    }

    Hierarchy

    • FetchLike
      • MockFetch
    • Parameters

      • input: string
      • init: RequestInit

      Returns Promise<Response>

    Index
    calls: MockRequest[]
    • Calls matching a method and path.

      Parameters

      • method: string
      • pathOrRegex: string | RegExp

      Returns MockRequest[]

    • Returns void