import test from "node:test"; import assert from "node:assert/strict"; import React from "react"; import { renderToStaticMarkup } from "react-dom/server"; import { I18nProvider } from "../../application/i18n/I18nProvider.tsx"; import { NoteOutline } from "./NoteOutline.tsx"; test("note outline renders a borderless hierarchy without heading-level labels", () => { const markup = renderToStaticMarkup( undefined} onSelectHeading={() => undefined} /> , ); assert.match(markup, /data-note-outline="true"/); assert.equal(markup.match(/data-note-outline-item=/g)?.length, 3); assert.match(markup, /padding-left:10px/); assert.match(markup, /padding-left:22px/); assert.doesNotMatch(markup, />H[1-6]