Skip to content

Commit 1462bb4

Browse files
committed
await 3 (test)
1 parent 5339c72 commit 1462bb4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/comments.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('pmd-github-action-comments', function () {
1818
process.cwd.mockReturnValue('/folder');
1919
});
2020

21-
it('can create comments', () => {
21+
it('can create comments', async () => {
2222
process.env['RUNNER_DEBUG'] = '1';
2323
process.env['GITHUB_REPOSITORY'] = 'pmd/pmd-github-action-tests';
2424
process.env['GITHUB_EVENT_NAME'] = 'pull_request';
@@ -28,14 +28,14 @@ describe('pmd-github-action-comments', function () {
2828
});
2929
const report = sarif.loadReport(path.join(__dirname, 'data', 'pmd-report.sarif'));
3030

31-
comments.createComments(report, 'test_token');
31+
await comments.createComments(report, 'test_token');
3232

3333
expect(core.error).not.toHaveBeenCalled();
3434
expect(core.warning).not.toHaveBeenCalled();
3535
});
3636

37-
it('can handle null report', () => {
38-
comments.createComments(null, null);
37+
it('can handle null report', async () => {
38+
await comments.createComments(null, null);
3939
expect(core.notice).not.toHaveBeenCalled();
4040
});
4141
});

0 commit comments

Comments
 (0)