import { test } from "node:test"; import assert from "node:assert/strict"; import { partialTranscriptLine, salvageCaveat } from "./salvageMark"; // Release 30 lane Q: the salvage mark, as the export and the MCP say it. test("the status line and the caveat say how much decoded, in minutes", () => { const mark = { decodedSeconds: 2335, totalSeconds: 6000 }; assert.equal(partialTranscriptLine(mark), "Partial transcript: 39 of 100 min decoded"); assert.match(salvageCaveat(mark), /^⚠ PARTIAL TRANSCRIPT — made from a damaged recording: 39 of 100 min decoded/); assert.match(salvageCaveat(mark), /Do NOT conclude/); });