@@ -56,10 +56,11 @@ describe('setup-licensed', () => {
5656 await run ( ) ;
5757 expect ( core . setFailed . callCount ) . toEqual ( 0 ) ;
5858
59- expect ( core . info . callCount ) . toEqual ( 3 ) ;
59+ expect ( core . info . callCount ) . toEqual ( 4 ) ;
6060 expect ( core . info . getCall ( 0 ) . args ) . toEqual ( [ `attempting to install licensed gem matching "${ version } "` ] ) ;
61- expect ( core . info . getCall ( 1 ) . args ) . toEqual ( [ `attempting to install licensed executable matching "${ version } "` ] ) ;
62- expect ( core . info . getCall ( 2 ) . args ) . toEqual ( [ `licensed (${ version } ) executable installed` ] ) ;
61+ expect ( core . info . getCall ( 1 ) . args ) . toEqual ( [ 'gem installation was not successful' ] ) ;
62+ expect ( core . info . getCall ( 2 ) . args ) . toEqual ( [ `attempting to install licensed executable matching "${ version } "` ] ) ;
63+ expect ( core . info . getCall ( 3 ) . args ) . toEqual ( [ `licensed (${ version } ) executable installed` ] ) ;
6364
6465 expect ( installers . gem . callCount ) . toEqual ( 1 ) ;
6566
@@ -82,8 +83,10 @@ describe('setup-licensed', () => {
8283 await run ( ) ;
8384 expect ( core . setFailed . callCount ) . toEqual ( 1 ) ;
8485 expect ( core . setFailed . getCall ( 0 ) . args ) . toEqual ( [ `unable to install licensed matching "${ version } "` ] ) ;
85- expect ( core . info . callCount ) . toEqual ( 2 ) ;
86+ expect ( core . info . callCount ) . toEqual ( 4 ) ;
8687 expect ( core . info . getCall ( 0 ) . args ) . toEqual ( [ `attempting to install licensed gem matching "${ version } "` ] ) ;
87- expect ( core . info . getCall ( 1 ) . args ) . toEqual ( [ `attempting to install licensed executable matching "${ version } "` ] ) ;
88+ expect ( core . info . getCall ( 1 ) . args ) . toEqual ( [ 'gem installation was not successful' ] ) ;
89+ expect ( core . info . getCall ( 2 ) . args ) . toEqual ( [ `attempting to install licensed executable matching "${ version } "` ] ) ;
90+ expect ( core . info . getCall ( 3 ) . args ) . toEqual ( [ 'exe installation was not successful' ] ) ;
8891 } ) ;
8992} ) ;
0 commit comments