import { renderToString } from "../helpers"; describe("blacklisted tags and attributes", () => { test("template with block-text tag", () => { const template = `
hello
`; expect(() => renderToString(template)).toThrow("Invalid tag name: 'block-text-0'"); }); test("template with block-handler tag", () => { const template = `
hello
`; expect(() => renderToString(template)).toThrow("Invalid attribute: 'block-handler-0'"); }); });