Skip to content

Commit

Permalink
test: updated coverage for new label property update
Browse files Browse the repository at this point in the history
  • Loading branch information
babblebey committed Sep 12, 2024
1 parent abcf4c4 commit 87ff01d
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion test/success.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ test("Add comment and labels to PRs associated with release commits and issues s
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -164,6 +166,8 @@ test("Add comment and labels to PRs associated with release commits and issues s
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -423,6 +427,8 @@ test("Add comment and labels to PRs associated with release commits and issues (
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -457,6 +463,8 @@ test("Add comment and labels to PRs associated with release commits and issues (
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -662,6 +670,8 @@ test("Add comment and labels to PRs associated with release commits and issues c
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -696,6 +706,8 @@ test("Add comment and labels to PRs associated with release commits and issues c
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -1471,6 +1483,8 @@ test("Do not add comment and labels to PR/issues from other repo", async (t) =>
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -1637,6 +1651,8 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -1671,6 +1687,8 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -1705,6 +1723,8 @@ test("Ignore missing and forbidden issues/PRs", async (t) => {
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -3099,7 +3119,7 @@ test('Add comment and label to found issues/associatedPR using the "successComme
failTitle,
// Issues with the label "semantic-release-relevant" will be commented and labeled
successCommentCondition:
"<% return issue.labels.includes('semantic-release-relevant'); %>",
"<% return issue.labels?.some((label) => { return label.name === ('semantic-release-relevant'); }); %>",
};
const options = {
repositoryUrl: `https://github.com/${owner}/${repo}.git`,
Expand Down Expand Up @@ -3148,6 +3168,8 @@ test('Add comment and label to found issues/associatedPR using the "successComme
url: "https://github.com/babblebey/sr-github/labels/released",
name: "semantic-release-relevant",
color: "ededed",
description: "This issue is relevant to semantic-release",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -3196,6 +3218,8 @@ test('Add comment and label to found issues/associatedPR using the "successComme
url: "https://github.com/babblebey/sr-github/labels/released",
name: "released",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -3382,6 +3406,8 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -3428,6 +3454,8 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -3519,6 +3547,8 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -3553,6 +3583,8 @@ test('Does not comment/label associatedPR and relatedIssues created by "Bots"',
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down Expand Up @@ -3753,6 +3785,8 @@ test('Does not comment/label "associatedPR" when "successCommentCondition" disab
url: "label_url",
name: "label_name",
color: "ededed",
description: "this is a label description",
isDefault: false,
},
],
},
Expand Down

0 comments on commit 87ff01d

Please sign in to comment.