(
organizationId: string,
accountId: string,
overrides: Partial<WorkOsMirrorMembership> = {},
)
| 114 | }); |
| 115 | |
| 116 | const 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 | |
| 130 | describe("WorkOsMirror upserts", () => { |
| 131 | it("ignores a user payload older than the stored row, accepts a newer one", async () => { |
no outgoing calls
no test coverage detected