test.coordination/core/strings/archive.strings.test.ts
test.coordination/core/strings/archive.strings.test.ts is a file in Codebase Testing. 15 lines of code and 0 definitions.
import { describe, it } from "vitest";
import {
extendContended,
historyContended,
repairContended,
} from "coordination-surface/tools/core/strings/archive.strings.ts";
import assert from "node:assert/strict";
const HISTORY = "history.txt";
describe("the archive contention messages", () => {
it("name the history that moved, and say which write was held back", () => {
const messages = [historyContended(HISTORY), repairContended(HISTORY), extendContended(HISTORY)];
assert.ok(messages.every((message) => message.includes(HISTORY)));
assert.equal(new Set(messages).size, 3);
});
});