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

Function inviteStatus

apps/host-selfhost/src/admin/invites.node.test.ts:30–37  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

28 );
29
30const inviteStatus = async (code: string): Promise<boolean> => {
31 const response = await handler(
32 new Request(`${BASE}/api/invite-status/${encodeURIComponent(code)}`),
33 );
34 expect(response.status).toBe(200);
35 const body = (await response.json()) as { valid?: boolean };
36 return body.valid === true;
37};
38
39test("open signup is closed: a signup without a valid invite code is rejected", async () => {
40 const res = await signUp({

Callers 1

Calls 2

jsonMethod · 0.65
handlerFunction · 0.50

Tested by

no test coverage detected