From 1d87b2b05c0b6af3a8502786c7cd5593c5122986 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Wed, 21 Aug 2024 21:39:19 +0200 Subject: [PATCH] Fix test --- plugs/tasks/task.test.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plugs/tasks/task.test.ts b/plugs/tasks/task.test.ts index 6ea416fd..f1b4f720 100644 --- a/plugs/tasks/task.test.ts +++ b/plugs/tasks/task.test.ts @@ -14,10 +14,6 @@ const itemsMd = ` Deno.test("Test task extraction", async () => { const t = parseMarkdown(itemsMd); const tasks = await extractTasks("test", t); - const items = await extractItems("test", t); - - // Tasks are also indexed as items, because they are - assertEquals(items.length, 4); assertEquals(tasks.length, 3); assertEquals(tasks[0].name, "Task 1"); @@ -42,8 +38,6 @@ Deno.test("Test task extraction", async () => { // Deeply assertEquals(tasks[2].name, "Task 2.1"); assertEquals(tasks[2].tags, []); - // Parent is * [ ] Task 2 #tag3 #tag1 list item - assertEquals(tasks[2].parent, items[2].ref); assertEquals( new Set(tasks[2].itags), new Set(["tag1", "tag3", "task", "tag2"]),