(org: { id: string; name: string })
| 122 | |
| 123 | describe("upsertOrganization · slug is minted at insert", () => { |
| 124 | const upsert = (org: { id: string; name: string }) => |
| 125 | program( |
| 126 | Effect.gen(function* () { |
| 127 | const { db } = yield* DbService; |
| 128 | return yield* Effect.promise(() => makeUserStore(db).upsertOrganization(org)); |
| 129 | }), |
| 130 | ); |
| 131 | |
| 132 | it("mints a valid slug on insert", async () => { |
| 133 | const org = await upsert({ id: `org_${crypto.randomUUID()}`, name: "Slug Mint Co" }); |
no test coverage detected