// node --test src/: the release notes as the site shows them. import { test } from "node:test"; import assert from "node:assert/strict"; import { notesText } from "./releases.js"; const players = '

Want to play? Download the Horizon launcher, not the files below

It installs this version.

'; test("the block sending people to the launcher is left out, the notes stay", () => { assert.equal(notesText(`${players}\n\n### Fixed\n- A fix (#1)\n`), "### Fixed\n- A fix (#1)\n"); assert.equal(notesText(`${players}\r\n\r\nRebuilt from the latest main.\r\n`), "Rebuilt from the latest main.\r\n"); assert.equal(notesText("

Other HTML

\n\n### New\n- A thing (#2)\n"), "

Other HTML

\n\n### New\n- A thing (#2)\n"); assert.equal(notesText(undefined), ""); });