Skip to content

Commit 84e4371

Browse files
committed
Fix test assertion: expect @-prefixed file path instead of file contents
The createPullRequest implementation correctly passes `@${input.bodyFile}` as the --description argument (using Azure CLI's @file convention). The test was incorrectly asserting against the file contents instead of the @-prefixed path string that actually appears in the args array.
1 parent 58afff8 commit 84e4371

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/server/src/sourceControl/AzureDevOpsCli.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ describe("AzureDevOpsCli.layer", () => {
197197
expect.objectContaining({
198198
command: "az",
199199
cwd: "/repo",
200-
args: expect.arrayContaining(["--description", "Generated body"]),
200+
args: expect.arrayContaining(["--description", `@${bodyFile}`]),
201201
}),
202202
);
203203
expect(mockRun.mock.calls[0]?.[0].args).not.toContain("--output");

0 commit comments

Comments
 (0)