MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / getFetchCall

Function getFetchCall

__tests__/api/cloud/fetch-test-utils.ts:23–29  ·  view source on GitHub ↗
(
  fetchMock: FetchMock,
  index = 0,
)

Source from the content-addressed store, hash-verified

21}
22
23export function getFetchCall(
24 fetchMock: FetchMock,
25 index = 0,
26): [string, RequestInit] {
27 const [url, init] = fetchMock.mock.calls[index] as [string, RequestInit];
28 return [url, init ?? {}];
29}
30
31export function getJsonBody(init: RequestInit): Record<string, unknown> {
32 return JSON.parse(String(init.body ?? "{}")) as Record<string, unknown>;

Calls

no outgoing calls

Tested by

no test coverage detected