import { expect, test } from "vitest"; import { elementToSvg } from "./elementToSvg.js"; import { initializeWasm } from "./initializeWasm.js"; test("default", async () => { await initializeWasm(); const svg = await elementToSvg(
hello
, ); expect(svg).toMatchInlineSnapshot( `""`, ); }); test("default", async () => { await initializeWasm(); const svg = await elementToSvg(
hello 👋😂👈 你好
, ); expect(svg).toMatchInlineSnapshot( `""`, ); });