File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments