MCPcopy Create free account
hub / github.com/ChurchApps/B1Admin / apiAuth

Function apiAuth

tests/serving-workflows.spec.ts:416–422  ·  view source on GitHub ↗
(ctx: any)

Source from the content-addressed store, hash-verified

414 const noMatchRes = await ctx.post(`${API_BASE}/doing/tasks/addToWorkflow`, { ...auth, data: { workflowId: "WFL00000002", stepId: "WFS00000004", associatedWith: { type: "person", id: "PER00000006", label: "Robert Johnson" } } });
415 expect(noMatchRes.status()).toBe(200);
416 expect((await noMatchRes.json()).stepId).toBe("WFS00000004");
417
418 await ctx.dispose();
419 });
420
421 const API_BASE = process.env.API_BASE || "http://localhost:8084";
422 async function apiAuth(ctx: any) {
423 const loginRes = await ctx.post(`${API_BASE}/membership/users/login`, { data: { email: "demo@b1.church", password: "password" } });
424 expect(loginRes.ok()).toBeTruthy();
425 const body = await loginRes.json();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected