feat: add inline icons for edit
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user