test: tighten duplicate PR close plan assertions

This commit is contained in:
Peter Steinberger
2026-05-09 09:48:52 +01:00
parent 482cffb21d
commit daf0d8f9a0

View File

@@ -77,10 +77,15 @@ diff --git a/b.ts b/b.ts
repo: "openclaw/openclaw",
});
expect(plan).toMatchObject([
expect(plan).toStrictEqual([
{
action: "close",
candidate: { number: 70530 },
candidate,
comment: `Thanks for the fix. This is now covered by the landed #70532 / commit https://github.com/openclaw/openclaw/commit/6415e35.
Evidence: overlapping changed hunks; shared file(s): ui/src/ui/chat/grouped-render.ts.
Closing #70530 as a duplicate.`,
evidence: {
overlappingHunks: true,
sharedFiles: ["ui/src/ui/chat/grouped-render.ts"],
@@ -119,10 +124,17 @@ diff --git a/b.ts b/b.ts
repo: "openclaw/openclaw",
});
expect(plan[0]).toMatchObject({
expect(plan[0]).toStrictEqual({
action: "close",
candidate,
comment: `Thanks for the fix. This is now covered by the landed #70532 / commit https://github.com/openclaw/openclaw/commit/6415e35.
Evidence: shared issue(s): #70491; shared file(s): ui/src/ui/chat/grouped-render.ts.
Closing #70592 as a duplicate.`,
evidence: {
overlappingHunks: false,
sharedFiles: ["ui/src/ui/chat/grouped-render.ts"],
sharedIssues: [70491],
},
});