mirror of
https://github.com/morluto/rea.git
synced 2026-10-12 02:19:24 +00:00
* test: eliminate fixture races and prune redundant scaffolding * fix(test): publish launcher capture readiness without renaming
26 lines
711 B
TypeScript
26 lines
711 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import {
|
|
parseArtifactInventoryEvidence,
|
|
tryAssembleInventorySet,
|
|
} from "./artifactInventoryEvidence.js";
|
|
|
|
describe("inventory validation failure channels", () => {
|
|
it("returns the empty-pages leaf as Result without throwing", () => {
|
|
const result = tryAssembleInventorySet([]);
|
|
expect(result).toEqual({
|
|
ok: false,
|
|
error: {
|
|
code: "empty",
|
|
message: "Artifact inventory requires Evidence pages",
|
|
},
|
|
});
|
|
});
|
|
|
|
it("keeps the throwing entry contract for empty input", () => {
|
|
expect(() => parseArtifactInventoryEvidence([])).toThrowError(
|
|
"Artifact inventory requires Evidence pages",
|
|
);
|
|
});
|
|
});
|