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:
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user