// fitShortLine (./clipEvidence.ts): a flip topic or a thread label fitted in code. import { test } from "node:test"; import assert from "node:assert/strict"; import { fitShortLine } from "./clipEvidence"; test("fitShortLine (release 28 smoke): a label past its limit is fitted in code — the part before a colon, else whole words off its end", () => { assert.equal(fitShortLine("Insulinoma: Disease and Management", 32), "Insulinoma"); assert.equal(fitShortLine("Rescue growth and staffing and the vets", 32), "Rescue growth and staffing"); assert.equal(fitShortLine("The bakery", 32), "The bakery"); assert.equal(fitShortLine("Supercalifragilisticexpialidociousnessness", 32).length > 32, true, "one word is left for the check to refuse"); });