(eligible: boolean)
| 112 | |
| 113 | /** An import source that admits the user, recording whether it was asked. */ |
| 114 | const importSourceOf = (eligible: boolean) => { |
| 115 | const reads: string[] = []; |
| 116 | const source: V2ImportSource = { |
| 117 | emailVerified: () => Effect.sync(() => (reads.push("user"), true)), |
| 118 | activeMemberIds: () => Effect.sync(() => (reads.push("members"), eligible ? [USER] : [])), |
| 119 | subscriptions: () => Effect.sync(() => (reads.push("billing"), [])), |
| 120 | }; |
| 121 | return { source, reads }; |
| 122 | }; |
| 123 | |
| 124 | describe("v2 moved read", () => { |
| 125 | it.effect("reads the selected org's metadata", () => |
no test coverage detected