import { test } from "node:test"; import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; import { fileURLToPath } from "node:url"; import { markSvg } from "yt-dlp-transcript-common/lib/brand"; import { MEDIA_MARK_PALETTE } from "yt-dlp-transcript-common/lib/brandMedia"; // umtool/app/icon.svg is umtool's favicon (Next's app/icon.svg file convention // links it from every page). umtool makes the media, so its icon is the parent // mark lit in Signal -- mark M2, the slate ground and dim of // ICON_PALETTES.archilyzer with Signal's on-dark lit line -- and it must stay // the mark: markSvg is the geometry, this file a copy of it. Regenerate with // markSvg(MEDIA_MARK_PALETTE) if this fails. test("app/icon.svg is markSvg(MEDIA_MARK_PALETTE), byte for byte", () => { const file = fileURLToPath(new URL("../app/icon.svg", import.meta.url)); assert.equal(readFileSync(file, "utf8").trimEnd(), markSvg(MEDIA_MARK_PALETTE)); });