MCPcopy Index your code
hub / github.com/StarpTech/FastGraph / Mock

Function Mock

src/test-utils.ts:76–81  ·  view source on GitHub ↗
(x?: any)

Source from the content-addressed store, hash-verified

74export const Namespace = () => ({} as any)
75
76export const Mock = (x?: any) => {
77 let args: any[],
78 f = (...y: any[]) => ((args = y), Promise.resolve(x))
79 // @ts-ignore
80 return (f.args = () => args), f
81}
82
83export const Headers = (init: readonly [string, string][] | null) => {
84 let raw = new Map(init)

Callers 1

apq.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected