import { describe, expect, it } from "vitest"; import { postprocessMermaidSvg } from "./mermaid.js"; import { trimIndentation } from "@triliumnext/commons"; describe("Mermaid", () => { it("converts
properly", () => { const before = trimIndentation`\

Verify Output
Against
Criteria

`; const after = trimIndentation`\

Verify Output
Against
Criteria

`; expect(postprocessMermaidSvg(before)).toBe(after); }); });