(
organizationId: string,
overrides: Partial<DirectoryMember> = {},
)
| 44 | const PENDING_SLUG = "pending-acme"; |
| 45 | |
| 46 | const mirrored = ( |
| 47 | organizationId: string, |
| 48 | overrides: Partial<DirectoryMember> = {}, |
| 49 | ): DirectoryMember => ({ |
| 50 | accountId: MEMBER, |
| 51 | membershipId: `om_${MEMBER}_${organizationId}`, |
| 52 | organizationId, |
| 53 | email: null, |
| 54 | name: null, |
| 55 | avatarUrl: null, |
| 56 | role: "member", |
| 57 | status: "active", |
| 58 | lastActiveAt: null, |
| 59 | ...overrides, |
| 60 | }); |
| 61 | |
| 62 | // The mirror as the directory reads it: MEMBER is active in both real orgs, |
| 63 | // an admin of URL_ORG, and merely invited to PENDING_ORG. |
no outgoing calls
no test coverage detected