Skip to content

Commit 29fcfae

Browse files
committed
feat(tasks): add task ID fixing and reorganization
1 parent 62dce17 commit 29fcfae

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/index.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type { I_Tasks, Task, Subtask, Priority, Status } from "@/@types/tasks";
2222
describe("TaskMaster Class", () => {
2323
const tmai = new TaskMaster({
2424
mainCommand: MAIN_COMMAND,
25-
tasksFilePath: "tasks.json",
25+
tasksFilePath: ".taskmaster/tasks/tasks.json",
2626
isTestMode: true,
2727
});
2828

@@ -311,6 +311,12 @@ describe("TaskMaster Class", () => {
311311
}
312312
});
313313
});
314+
315+
describe("fixIdsAsync", () => {
316+
test("fixes sequential IDs", async () => {
317+
await tmai.fixIdsAsync();
318+
});
319+
});
314320
});
315321

316322
describe("ID validation", () => {

0 commit comments

Comments
 (0)