MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / connectionAddresses

Function connectionAddresses

apps/host-selfhost/src/multi-user.test.ts:113–122  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

111 );
112
113const connectionAddresses = async (token: string): Promise<string[]> => {
114 const res = await handler(
115 new Request(`${BASE}/api/connections`, {
116 headers: { authorization: `Bearer ${token}` },
117 }),
118 );
119 expect(res.status).toBe(200);
120 const body = (await res.json()) as ReadonlyArray<{ address: string }>;
121 return body.map((c) => c.address);
122};
123
124const runCode = async (token: string, code: string) => {
125 const res = await handler(

Callers 1

multi-user.test.tsFile · 0.85

Calls 2

jsonMethod · 0.65
handlerFunction · 0.50

Tested by

no test coverage detected