fix(FN-994): add missing steps property to resumeOrphaned test mock

- Add steps array to task mock in resumeOrphaned test case
- Ensures test mock matches expected Task shape with steps property
This commit is contained in:
gsxdsm
2026-04-05 17:37:27 -07:00
parent 7a5d7c1b19
commit 411255da4e

View File

@@ -2390,8 +2390,8 @@ describe("TaskExecutor pause behavior", () => {
it("skips paused tasks during resumeOrphaned", async () => { it("skips paused tasks during resumeOrphaned", async () => {
const store = createMockStore(); const store = createMockStore();
store.listTasks.mockResolvedValue([ store.listTasks.mockResolvedValue([
{ id: "FN-001", column: "in-progress", paused: true, title: "Paused task" }, { id: "FN-001", column: "in-progress", paused: true, title: "Paused task", steps: [], description: "", dependencies: [] },
{ id: "FN-002", column: "in-progress", paused: false, title: "Active task" }, { id: "FN-002", column: "in-progress", paused: false, title: "Active task", steps: [], description: "", dependencies: [] },
]); ]);
mockedCreateHaiAgent.mockResolvedValue({ mockedCreateHaiAgent.mockResolvedValue({