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

Function orgIdOf

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

Source from the content-addressed store, hash-verified

63};
64
65const orgIdOf = async (token: string): Promise<string> => {
66 const res = await handler(
67 new Request(`${BASE}/api/account/me`, {
68 headers: { authorization: `Bearer ${token}` },
69 }),
70 );
71 expect(res.status).toBe(200);
72 const body = (await res.json()) as { organization: { id: string } };
73 return body.organization.id;
74};
75
76const addIntegration = (token: string, slug: string) =>
77 handler(

Callers 1

multi-user.test.tsFile · 0.70

Calls 2

jsonMethod · 0.65
handlerFunction · 0.50

Tested by

no test coverage detected