(db: SqliteTestFumaDb, slug: string)
| 136 | * the call returns success having touched no storage, which would make a |
| 137 | * read-only assertion vacuous. */ |
| 138 | const insertIntegration = (db: SqliteTestFumaDb, slug: string): Effect.Effect<void> => |
| 139 | Effect.promise(async () => { |
| 140 | await db.client.execute({ |
| 141 | sql: `INSERT INTO integration ( |
| 142 | row_id, tenant, slug, plugin_id, name, description, config, can_remove, |
| 143 | can_refresh, created_at, updated_at |
| 144 | ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`, |
| 145 | args: [ |
| 146 | `i-${slug}`, |
| 147 | TENANT, |
| 148 | slug, |
| 149 | "demo", |
| 150 | slug, |
| 151 | null, |
| 152 | JSON.stringify({}), |
| 153 | 1, |
| 154 | 0, |
| 155 | Date.now(), |
| 156 | Date.now(), |
| 157 | ], |
| 158 | }); |
| 159 | }); |
| 160 | |
| 161 | /** Seed two users and an org connection under `t1`, plus an untouchable other |
| 162 | * tenant. Subjects go in through `touchSubject` (the only legitimate writer); |
no test coverage detected