Skip to content

Commit e6360f3

Browse files
committed
fix(web): expect first-class pull-request context in plan follow-up test
1 parent 11eb6e3 commit e6360f3

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎apps/web/src/components/pullRequest/pullRequestDetail.logic.test.ts‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,16 @@ describe("asking about a change rather than working on it", () => {
869869
reviewComments: [comment],
870870
});
871871
expect(submission).toEqual({ text: draftText, interactionMode: "plan" });
872-
expect(context?.records[0]).toMatchObject({ pullRequest: base });
872+
expect(context?.records[0]).toMatchObject({
873+
kind: "pull-request",
874+
number: base.number,
875+
title: base.title,
876+
url: base.url,
877+
headBranch: base.headBranch,
878+
baseBranch: base.baseBranch,
879+
state: base.state,
880+
isDraft: base.isDraft,
881+
});
873882
});
874883

875884
it("puts the reader's request in the composer and the selected lines in chips", () => {

0 commit comments

Comments
 (0)