fix(server): update PR status test for new normalized fields
normalizeCheckoutPrStatusPayload always emits the full wire shape now (number, repoOwner, repoName, isDraft, checks, checksStatus, reviewDecision) — the workspace-git-watch test's toEqual assertion still had the pre-PR-pane shape and was failing. Update the expected object to match the actual wire contract.
This commit is contained in:
@@ -345,12 +345,19 @@ describe("workspace git watch targets", () => {
|
|||||||
).toEqual({
|
).toEqual({
|
||||||
cwd: "/tmp/repo",
|
cwd: "/tmp/repo",
|
||||||
status: {
|
status: {
|
||||||
|
number: undefined,
|
||||||
url: "https://github.com/acme/repo/pull/456",
|
url: "https://github.com/acme/repo/pull/456",
|
||||||
title: "Runtime centralization",
|
title: "Runtime centralization",
|
||||||
state: "merged",
|
state: "merged",
|
||||||
|
repoOwner: undefined,
|
||||||
|
repoName: undefined,
|
||||||
baseRefName: "main",
|
baseRefName: "main",
|
||||||
headRefName: "workspace-git-service",
|
headRefName: "workspace-git-service",
|
||||||
isMerged: true,
|
isMerged: true,
|
||||||
|
isDraft: false,
|
||||||
|
checks: [],
|
||||||
|
checksStatus: undefined,
|
||||||
|
reviewDecision: undefined,
|
||||||
},
|
},
|
||||||
githubFeaturesEnabled: true,
|
githubFeaturesEnabled: true,
|
||||||
error: null,
|
error: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user