diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 8e217d4..b13edec 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -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, @@ -55,6 +59,8 @@ test('Test Empty Plan Summary', async () => { const expected = `## Terraform Plan: No changes detected` expect(summary).toEqual(expected) + + scope.done() }) test('Test Basic Plan with custom title', async () => {