Skip to content

Commit d188ab4

Browse files
GHA-95 Add UTs for OctokitAction GitHub APIs (#232)
1 parent 10919d5 commit d188ab4

12 files changed

+150
-49
lines changed

PullRequestCreated/PullRequestCreated.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ describe('PullRequestCreated', () => {
155155
await runAction('KEY', 'Standalone PR', null, 'renovate[bot]');
156156
expect(logTester.logsParams).toStrictEqual([
157157
"Loading PR #42",
158+
"Invoked rest.issues.listComments({\"owner\":\"test-owner\",\"repo\":\"test-repo\",\"issue_number\":42})",
158159
"Invoked jira.createIssue('KEY', 'Standalone PR', {\"issuetype\":{\"name\":\"Task\"},\"customfield_10001\":\"dot-neeet-team\",\"customfield_10020\":42})",
159160
"Invoked rest.issues.createComment({\"owner\":\"test-owner\",\"repo\":\"test-repo\",\"issue_number\":42,\"body\":\"Renovate Jira issue ID: [KEY-4242](https://sonarsource.atlassian.net/browse/KEY-4242)\"})",
160161
"Invoked jira.addIssueRemoteLink('KEY-4242'', 'https://github.com/test-owner/test-repo/pull/42', null)",

dist/PullRequestCreated/PullRequestCreated.test.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/PullRequestCreated/PullRequestCreated.test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/lib/OctokitAction.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)