(overrides: Partial<AgentTaskRun> = {})
| 19 | } |
| 20 | |
| 21 | function makeRun(overrides: Partial<AgentTaskRun> = {}): AgentTaskRun { |
| 22 | return { |
| 23 | id: "run-1", |
| 24 | taskId: "task-1", |
| 25 | starttime: Date.now(), |
| 26 | status: "running", |
| 27 | ...overrides, |
| 28 | }; |
| 29 | } |
| 30 | |
| 31 | describe("AgentTaskRepo", () => { |
| 32 | let repo: AgentTaskRepo; |