Skip to content
Merged
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
4 changes: 2 additions & 2 deletions actions/setup/js/close_older_issues.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ describe("close_older_issues", () => {
const results = await closeOlderIssues(mockGithub, "owner", "repo", "", [], newIssue, "Test Workflow", "https://github.com/owner/repo/actions/runs/123");

expect(results).toHaveLength(MAX_CLOSE_COUNT);
expect(global.core.warning).toHaveBeenCalledWith(`Found 15 older issues, but only closing the first ${MAX_CLOSE_COUNT}`);
expect(global.core.warning).toHaveBeenCalledWith(`⚠️ Found 15 older issues, but only closing the first ${MAX_CLOSE_COUNT}`);
});

it("should continue on error for individual issues", async () => {
Expand Down Expand Up @@ -328,7 +328,7 @@ describe("close_older_issues", () => {
const results = await closeOlderIssues(mockGithub, "owner", "repo", "Prefix", [], newIssue, "Test Workflow", "https://github.com/owner/repo/actions/runs/123");

expect(results).toHaveLength(0);
expect(global.core.info).toHaveBeenCalledWith("No older issues found to close");
expect(global.core.info).toHaveBeenCalledWith("No older issues found to close - operation complete");
});
});
});
Loading