MCPcopy
hub / github.com/codedogQBY/ReadAny / installFetchStub

Function installFetchStub

packages/core/src/sync/webdav-client.test.ts:6–15  ·  view source on GitHub ↗
(
  handler: (url: string, options?: FetchOptions) => Response | Promise<Response>,
)

Source from the content-addressed store, hash-verified

4import { WebDavClient } from "./webdav-client";
5
6function installFetchStub(
7 handler: (url: string, options?: FetchOptions) => Response | Promise<Response>,
8): void {
9 setPlatformService({
10 platformType: "web",
11 isMobile: false,
12 isDesktop: false,
13 fetch: handler,
14 } as unknown as IPlatformService);
15}
16
17describe("WebDavClient PROPFIND parsing", () => {
18 afterEach(() => {

Callers 1

Calls 1

setPlatformServiceFunction · 0.90

Tested by

no test coverage detected