feat: add inline icons for edit

This commit is contained in:
2026-07-16 02:49:55 +05:00
parent bda6c6b2e0
commit 7c0584707a
35 changed files with 1280 additions and 94 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
import { beforeEach, describe, expect, it } from "vitest";
import { TASK_FILE_EXTENSION } from "@/model/taskFile";
import { err } from "neverthrow";
import { InMemoryFileSystem } from "../../tests/helpers/InMemoryFileSystem";
import { appError, AppErrorVariant } from "@/error";
@@ -10,7 +11,7 @@ describe("openTask", () => {
let repo: FsTaskRepository;
beforeEach(() => {
repo = new FsTaskRepository(new InMemoryFileSystem(), ".task.md");
repo = new FsTaskRepository(new InMemoryFileSystem(), TASK_FILE_EXTENSION);
});
it("returns file path and task for an existing id", async () => {
@@ -30,7 +31,7 @@ describe("openTask", () => {
expect(result.isOk()).toBe(true);
if (result.isErr()) return;
expect(result.value.path).toBe("/tasks/open-me.task.md");
expect(result.value.path).toBe(`/tasks/open-me${TASK_FILE_EXTENSION}`);
expect(result.value.task).toEqual(created);
});