Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(scripts): update module-pin classification tests

Steven Enamakel6df4811e6829
diff --git a/scripts/__tests__/module-pins.test.mjs b/scripts/__tests__/module-pins.test.mjs
index b1f46841e3..ba00b9a2de 100644
--- a/scripts/__tests__/module-pins.test.mjs
+++ b/scripts/__tests__/module-pins.test.mjs
@@ -286,11 +286,12 @@ test("the existing exact-drift exemption is proof-checked and keeps ahead visibl
assets: [{ hostKey: "linux", archive: "fixture.tar.gz", sha256: "a".repeat(64) }],
actualHead: fixture.candidateCommit,
};
- const accepted = classifyPin({ ...base, actual, exemption, sourceParityContext });
+ const accepted = classifyPin({ ...base, version: "1.0.0", actual, exemption, sourceParityContext });
assert.equal(accepted.ok, true);
assert.equal(accepted.kind, "exempt");
const altered = classifyPin({
...base,
+ version: "1.0.0",
actual,
exemption: { ...exemption, sourceParity: { ...fixture.parity, candidateCommit: "f".repeat(40) } },
sourceParityContext,