import { assertEquals } from "@std/assert"; import { renderHtml } from "./html_render.ts"; Deno.test("HTML Render", () => { assertEquals( renderHtml({ name: "b", body: "hello", }), `hello`, ); assertEquals( renderHtml({ name: "a", attrs: { href: "https://example.com", }, body: "hello", }), `hello`, ); assertEquals( renderHtml({ name: "span", body: "<>", }), `<>`, ); });