import { test } from "node:test"; import assert from "node:assert/strict"; import { dateOrUndated } from "./server"; // lane/local-media (review B2): a local recording with no recording date has // uploadDate "", and the listings say "undated" rather than print an empty // field; a dated record prints exactly as before. test("dateOrUndated: an empty date is named, a real one formatted as before", () => { assert.equal(dateOrUndated(""), "undated"); assert.equal(dateOrUndated("20240229"), "2024-02-29"); });