(org: { id: string; name: string; updatedAt?: Date })
| 126 | |
| 127 | describe("upsertOrganization · slug is minted at insert", () => { |
| 128 | const upsert = (org: { id: string; name: string; updatedAt?: Date }) => |
| 129 | program( |
| 130 | Effect.gen(function* () { |
| 131 | const { db } = yield* DbService; |
| 132 | return yield* Effect.promise(() => |
| 133 | makeUserStore(db).upsertOrganization({ |
| 134 | updatedAt: new Date(), |
| 135 | ...org, |
| 136 | }), |
| 137 | ); |
| 138 | }), |
| 139 | ); |
| 140 | |
| 141 | it("mints a valid slug on insert", async () => { |
| 142 | const org = await upsert({ |
no test coverage detected