mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test: tighten duplicate PR close plan assertions
This commit is contained in:
@@ -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],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user