Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/workflow/js/create_code_scanning_alert.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe("create_code_scanning_alert.cjs", () => {
setAgentOutput("invalid json");
await eval(`(async () => { ${securityReportScript} })()`);

expect(mockCore.setFailed).toHaveBeenCalledWith(expect.stringMatching(/Error parsing agent output JSON:/));
expect(mockCore.error).toHaveBeenCalledWith(expect.stringMatching(/Error parsing agent output JSON:/));
});

it("should handle missing items array", async () => {
Expand Down
2 changes: 1 addition & 1 deletion pkg/workflow/js/create_discussion.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ describe("create_discussion.cjs", () => {

// Check that it logs the content length first, then the error
expect(mockCore.info).toHaveBeenCalledWith("Agent output content length: 12");
expect(mockCore.setFailed).toHaveBeenCalledWith(expect.stringMatching(/Error parsing agent output JSON:.*Unexpected token/));
expect(mockCore.error).toHaveBeenCalledWith(expect.stringMatching(/Error parsing agent output JSON:.*Unexpected token/));
});

it("should handle missing create-discussion items", async () => {
Expand Down
Loading