Skip to content

Commit

Permalink
Possibly fix failing CI by mocking GH API
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryGSC committed Jun 25, 2024
1 parent 0994092 commit 6d5e31e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ will **replace (delete then create)** 1 resource:
})

test('Test Empty Plan Summary', async () => {
const scope = nock('https://api.github.com').get(/.*/).reply(200, {
html_url: 'https://test/workflow/url'
})

const commenter = new PlanCommenter({
octokit: github.getOctokit('fake'),
runId: 1234,
Expand Down

0 comments on commit 6d5e31e

Please sign in to comment.