mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-05 14:35:17 +01:00
refactor(test): remove vacuous self-comparison assertions
A test-audit pass found three assertions that compare a single evaluation to itself. Each one sits next to a stronger retained assertion that already protects the same contract, so the duplicate lines add no failure detection: - mcp-tasks: the task-ID index binding to company and connection is proven by the different-connection inequality assertion. - prepared-statements: per-client, per-shape memoization is proven by identity plus the recorded prepare-call sequence. - runner-image-identity: same-tree digest stability is proven by rebuilding the tree and comparing digests. No production code changes.
This commit is contained in:
1 parent
28aa32e7d7
commit
52ca4569ae
3 files changed
-3
No files matched your search
@@ -104,7 +104,6 @@ describe("MCP Tasks protocol", () => {
|
||||
expect(openMcpTaskId("secret", scope, sealed)).toBe("task-123");
|
||||
expect(openMcpTaskId("secret", { ...scope, companyId: "c2" }, sealed)).toBeNull();
|
||||
expect(openMcpTaskId("other", scope, sealed)).toBeNull();
|
||||
expect(mcpTaskIdIndex("secret", scope, "task-123")).toBe(mcpTaskIdIndex("secret", scope, "task-123"));
|
||||
expect(mcpTaskIdIndex("secret", { ...scope, connectionId: "k2" }, "task-123")).not.toBe(mcpTaskIdIndex("secret", scope, "task-123"));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -12,7 +12,6 @@ describe("prepared statements", () => {
|
||||
const first = statements(root, "first");
|
||||
expect(statements(root, "first")).toBe(first);
|
||||
expect(statements(root, "after")).not.toBe(first);
|
||||
expect(statements(root, "after")).toBe(statements(root, "after"));
|
||||
expect(statements(transaction, "first")).toEqual({ db: transaction, shape: "first" });
|
||||
expect(statements(transaction, "first")).not.toBe(first);
|
||||
expect(prepare.mock.calls).toEqual([[root, "first"], [root, "after"], [transaction, "first"]]);
|
||||
|
||||
@@ -69,7 +69,6 @@ describe("Runner image identity", () => {
|
||||
|
||||
it("is the same for the same tree", () => {
|
||||
const root = repository();
|
||||
expect(digestOf(root)).toBe(digestOf(root));
|
||||
expect(digestOf(repository())).toBe(digestOf(root));
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user