import { renderToString, snapshotEverything } from "../helpers"; // NB: check the snapshots to see where the SVG namespaces are added snapshotEverything(); describe("properly support svg", () => { test("add proper namespace to svg", () => { const template = ` `; expect(renderToString(template)).toBe( ` ` ); }); test("add proper namespace to g tags", () => { const template = ` `; expect(renderToString(template)).toBe( ` ` ); }); test("namespace to g tags not added if already in svg namespace", () => { const template = ``; expect(renderToString(template)).toBe(``); }); test("namespace to svg tags added even if already in svg namespace", () => { const template = ``; expect(renderToString(template)).toBe(``); }); });