1
0
silverbullet/plugs/index/cheap_yaml.test.ts

11 lines
441 B
TypeScript
Raw Normal View History

2023-12-21 17:37:50 +00:00
import { assertEquals } from "../../test_deps.ts";
import { determineTags } from "./cheap_yaml.ts";
Deno.test("cheap yaml", () => {
assertEquals([], determineTags(""));
assertEquals([], determineTags("hank: bla"));
assertEquals(["template"], determineTags("tags: template"));
assertEquals(["bla", "template"], determineTags("tags: bla,template"));
assertEquals(["bla", "template"], determineTags("tags:\n- bla\n- template"));
});