11 lines
441 B
TypeScript
11 lines
441 B
TypeScript
|
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"));
|
||
|
});
|