import { renderToString, snapshotEverything } from "../helpers"; snapshotEverything(); // ----------------------------------------------------------------------------- // comments // ----------------------------------------------------------------------------- describe("comments", () => { test("properly handle comments", () => { const template = `
hello owl
`; expect(renderToString(template)).toBe("
hello owl
"); }); test("only a comment", () => { const template = ``; expect(renderToString(template)).toBe(``); }); test("properly handle comments between t-if/t-else", () => { const template = `
true owl
`; expect(renderToString(template)).toBe("
true
"); }); });