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({
|
||||
cwd: "/tmp/repo",
|
||||
status: {
|
||||
number: undefined,
|
||||
url: "https://github.com/acme/repo/pull/456",
|
||||
title: "Runtime centralization",
|
||||
state: "merged",
|
||||
repoOwner: undefined,
|
||||
repoName: undefined,
|
||||
baseRefName: "main",
|
||||
headRefName: "workspace-git-service",
|
||||
isMerged: true,
|
||||
isDraft: false,
|
||||
checks: [],
|
||||
checksStatus: undefined,
|
||||
reviewDecision: undefined,
|
||||
},
|
||||
githubFeaturesEnabled: true,
|
||||
error: null,
|
||||
|
||||
Reference in New Issue
Block a user