(headSha: string, integrationId: string, projectId: number)
| 1279 | expect(rows.find(row => row.id === otherPlatformId)?.status).toBe('pending'); |
| 1280 | expect(rows.find(row => row.id === otherPrId)?.status).toBe('pending'); |
| 1281 | expect(rows.find(row => row.id === terminalCompletedId)?.status).toBe('completed'); |
| 1282 | expect(rows.find(row => row.id === terminalFailedId)?.status).toBe('failed'); |
| 1283 | |
| 1284 | const [otherRepoRow] = await db |
| 1285 | .select({ status: cloud_agent_code_reviews.status }) |
| 1286 | .from(cloud_agent_code_reviews) |
| 1287 | .where(eq(cloud_agent_code_reviews.id, otherRepoId)) |
| 1288 | .limit(1); |
| 1289 | expect(otherRepoRow?.status).toBe('pending'); |
| 1290 | }); |
| 1291 | |
| 1292 | it('settles the admitted ledger row for superseded reviews', async () => { |
| 1293 | const reviewId = await createCodeReview({ |
| 1294 | owner: { type: 'user', id: testUser.id, userId: testUser.id }, |
| 1295 | platformIntegrationId: githubIntegrationId, |
| 1296 | repoFullName: repo, |
| 1297 | prNumber: 46, |
| 1298 | prUrl: `https://github.com/${repo}/pull/46`, |
| 1299 | prTitle: 'ledger superseded settle', |
| 1300 | prAuthor: 'octocat', |
| 1301 | baseRef: 'main', |
no test coverage detected