From cfd713c120c02a5fcbc3a902d9b32bc9fa3e6919 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sat, 2 Mar 2024 14:48:56 +0100 Subject: [PATCH] Remove legacy test --- plugs/index/snippet.test.ts | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 plugs/index/snippet.test.ts diff --git a/plugs/index/snippet.test.ts b/plugs/index/snippet.test.ts deleted file mode 100644 index 4cc8a19a..00000000 --- a/plugs/index/snippet.test.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { assertEquals } from "$lib/test_deps.ts"; -import { extractSnippet } from "./page_links.ts"; - -Deno.test("Snippet extraction", () => { - const sample1 = `This is a test -and a [[new]] line that runs super duper duper duper duper duper long -[[SETTINGS]] - super`; - assertEquals( - extractSnippet(sample1, sample1.indexOf("[[new]]")), - "and a [[new]] line that runs sup", - ); - assertEquals( - extractSnippet(sample1, sample1.indexOf("[[SETTINGS]]")), - "[[SETTINGS]]", - ); -});