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

Function membership

apps/cloud/src/auth/workos-mirror.node.test.ts:116–128  ·  view source on GitHub ↗
(
  organizationId: string,
  accountId: string,
  overrides: Partial<WorkOsMirrorMembership> = {},
)

Source from the content-addressed store, hash-verified

114});
115
116const membership = (
117 organizationId: string,
118 accountId: string,
119 overrides: Partial<WorkOsMirrorMembership> = {},
120): WorkOsMirrorMembership => ({
121 id: `om_${accountId}_${organizationId}`,
122 accountId,
123 organizationId,
124 role: "member",
125 status: "active",
126 updatedAt: T1,
127 ...overrides,
128});
129
130describe("WorkOsMirror upserts", () => {
131 it("ignores a user payload older than the stored row, accepts a newer one", async () => {

Callers 3

memberFunction · 0.85
seedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected