From bb7c58fa98abeaddd55b65af7367d34e44ecc223 Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Tue, 30 May 2023 15:06:17 +0000 Subject: [PATCH] - update the `transform.test.ts` --- __tests__/transform.test.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/__tests__/transform.test.ts b/__tests__/transform.test.ts index ec1ac08..861aad2 100644 --- a/__tests__/transform.test.ts +++ b/__tests__/transform.test.ts @@ -39,7 +39,7 @@ mergedPullRequests.push( mergeCommitSha: 'sha1', author: 'Mike', repoName: 'test-repo', - labels: new Set(), + labels: [], milestone: '', body: 'no magic body1 for this matter', assignees: [], @@ -57,7 +57,7 @@ mergedPullRequests.push( mergeCommitSha: 'sha1', author: 'Mike', repoName: 'test-repo', - labels: new Set(), + labels: [], milestone: '', body: 'no magic body2 for this matter', assignees: [], @@ -75,7 +75,7 @@ mergedPullRequests.push( mergeCommitSha: 'sha1', author: 'Mike', repoName: 'test-repo', - labels: new Set(), + labels: [], milestone: '', body: 'no magic body3 for this matter', assignees: [], @@ -93,7 +93,7 @@ mergedPullRequests.push( mergeCommitSha: 'sha1', author: 'Mike', repoName: 'test-repo', - labels: new Set(), + labels: [], milestone: '', body: 'no magic body4 for this matter', assignees: [], @@ -113,7 +113,7 @@ const pullRequestWithLabelInBody: PullRequestInfo = { mergeCommitSha: 'sha1', author: 'Mike', repoName: 'test-repo', - labels: new Set(), + labels: [], milestone: '', body: '[Issue][Feature][AB-1234321] - no magic body for this matter', assignees: [], @@ -132,7 +132,7 @@ const openPullRequest: PullRequestInfo = { mergeCommitSha: 'sha1', author: 'Mike', repoName: 'test-repo', - labels: new Set(), + labels: [], milestone: '', body: 'Some fancy body message', assignees: [], @@ -246,7 +246,7 @@ pullRequestsWithLabels.push( mergeCommitSha: 'sha1-1', author: 'Mike', repoName: 'test-repo', - labels: new Set().add('feature'), + labels: ['feature'], milestone: '', body: 'no magic body for this matter', assignees: [], @@ -264,7 +264,7 @@ pullRequestsWithLabels.push( mergeCommitSha: 'sha1-2', author: 'Mike', repoName: 'test-repo', - labels: new Set().add('issue').add('fix'), + labels: ['issue', 'fix'], milestone: '', body: 'no magic body for this matter', assignees: [], @@ -282,7 +282,7 @@ pullRequestsWithLabels.push( mergeCommitSha: 'sha1-3', author: 'Mike', repoName: 'test-repo', - labels: new Set().add('issue').add('feature').add('fix'), + labels: ['issue', 'feature', 'fix'], milestone: '', body: 'no magic body for this matter', assignees: [], @@ -300,7 +300,7 @@ pullRequestsWithLabels.push( mergeCommitSha: 'sha1-4', author: 'Mike', repoName: 'test-repo', - labels: new Set().add(''), + labels: [''], milestone: '', body: 'no magic body for this matter', assignees: [], @@ -322,7 +322,7 @@ openPullRequestsWithLabels.push( mergeCommitSha: 'sha1', author: 'Mike', repoName: 'test-repo', - labels: new Set().add('feature'), + labels: ['feature'], milestone: '', body: 'Some fancy body message', assignees: [], @@ -340,7 +340,7 @@ openPullRequestsWithLabels.push( mergeCommitSha: 'sha1', author: 'Mike', repoName: 'test-repo', - labels: new Set().add('feature'), + labels: [], milestone: '', body: 'Some fancy body message', assignees: [],