import { test } from "node:test"; import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; import { fileURLToPath } from "node:url"; import { ICON_PALETTES, markSvg } from "yt-dlp-transcript-common/lib/brand"; // editor/app/icon.svg is the editor's favicon (Next's app/icon.svg file // convention links it from every page). It is a static file because the // editor's icon never changes per install — it is the parent mark — but it // must stay the mark: markSvg is the geometry, this file a copy of it. // Regenerate with markSvg(ICON_PALETTES.archilyzer) if this fails. test("app/icon.svg is markSvg(ICON_PALETTES.archilyzer), byte for byte", () => { const file = fileURLToPath(new URL("../icon.svg", import.meta.url)); assert.equal( readFileSync(file, "utf8").trimEnd(), markSvg(ICON_PALETTES.archilyzer), ); });