(overrides?: Partial<PendingApproval>)
| 9 | } from "./pending-approval"; |
| 10 | |
| 11 | const approval = (overrides?: Partial<PendingApproval>): PendingApproval => ({ |
| 12 | executionId: "exec_1", |
| 13 | artifactId: "art_1", |
| 14 | code: 'return await tools.github.user.main.issues.create({"title":"x"})', |
| 15 | address: "github.user.main.issues.create", |
| 16 | expiresAt: Date.now() + PENDING_APPROVAL_TTL_MS, |
| 17 | ...overrides, |
| 18 | }); |
| 19 | |
| 20 | describe("makePendingApprovalStore", () => { |
| 21 | it.effect("round-trips a recorded approval", () => |
no outgoing calls
no test coverage detected