diff --git a/pkg/workflow/js/add_labels.test.cjs b/pkg/workflow/js/add_labels.test.cjs index a0e3a5a8f4..159d917370 100644 --- a/pkg/workflow/js/add_labels.test.cjs +++ b/pkg/workflow/js/add_labels.test.cjs @@ -1050,7 +1050,7 @@ describe("add_labels.cjs", () => { // Execute the script await eval(`(async () => { ${addLabelsScript} })()`); - expect(mockCore.setFailed).toHaveBeenCalledWith('Target is "*" but no item_number specified in label addition item'); + expect(mockCore.setFailed).toHaveBeenCalledWith('Target is "*" but no item_number/issue_number specified in label addition item'); expect(mockGithub.rest.issues.addLabels).not.toHaveBeenCalled(); }); @@ -1087,7 +1087,7 @@ describe("add_labels.cjs", () => { // Execute the script await eval(`(async () => { ${addLabelsScript} })()`); - expect(mockCore.setFailed).toHaveBeenCalledWith("Invalid item_number/pull_request_number specified: -5"); + expect(mockCore.setFailed).toHaveBeenCalledWith("Invalid item_number/issue_number/pull_request_number specified: -5"); expect(mockGithub.rest.issues.addLabels).not.toHaveBeenCalled(); }); });