Remove legacy test

pull/774/head
Zef Hemel 2024-03-02 14:48:56 +01:00
parent 89e2e7a37c
commit cfd713c120
1 changed files with 0 additions and 17 deletions

View File

@ -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]]",
);
});