@@ -282,9 +282,9 @@ describe('CreateConfigurationScript', () => {
282
282
283
283
const result = await script ( option ) ;
284
284
expect ( activeRelease ) . not . toHaveBeenCalled ( ) ;
285
- expect ( getPlugin ) . toHaveBeenCalledTimes ( 3 ) ;
285
+ expect ( getPlugin ) . toHaveBeenCalledTimes ( 2 ) ;
286
286
expect ( getPlugin ) . toHaveBeenCalledWith ( plugin1 . sid ) ;
287
- expect ( getVersion ) . toHaveBeenCalledTimes ( 3 ) ;
287
+ expect ( getVersion ) . toHaveBeenCalledTimes ( 2 ) ;
288
288
expect ( getVersion ) . toHaveBeenCalledWith ( plugin1 . unique_name , 'version1' ) ;
289
289
expect ( getVersion ) . toHaveBeenCalledWith ( plugin1 . sid , pluginVersion1 . sid ) ;
290
290
expect ( getLatestVersion ) . not . toHaveBeenCalled ( ) ;
@@ -333,12 +333,12 @@ describe('CreateConfigurationScript', () => {
333
333
334
334
const result = await script ( option ) ;
335
335
expect ( activeRelease ) . toHaveBeenCalledTimes ( 1 ) ;
336
- expect ( getPlugin ) . toHaveBeenCalledTimes ( 5 ) ;
336
+ expect ( getPlugin ) . toHaveBeenCalledTimes ( 3 ) ;
337
337
expect ( getPlugin ) . toHaveBeenCalledWith ( configuredPlugin1 . unique_name ) ;
338
338
expect ( getPlugin ) . not . toHaveBeenCalledWith ( configuredPlugin2 . unique_name ) ;
339
339
expect ( getPlugin ) . toHaveBeenCalledWith ( configuredPlugin1 . plugin_sid ) ;
340
340
expect ( getPlugin ) . toHaveBeenCalledWith ( configuredPlugin2 . plugin_sid ) ;
341
- expect ( getVersion ) . toHaveBeenCalledTimes ( 5 ) ;
341
+ expect ( getVersion ) . toHaveBeenCalledTimes ( 3 ) ;
342
342
expect ( getVersion ) . toHaveBeenCalledWith ( plugin1 . unique_name , 'version1' ) ;
343
343
expect ( getVersion ) . toHaveBeenCalledWith ( plugin1 . sid , pluginVersion1 . sid ) ;
344
344
expect ( getVersion ) . not . toHaveBeenCalledWith ( plugin2 . unique_name , pluginVersion2 . version ) ;
@@ -504,12 +504,12 @@ describe('CreateConfigurationScript', () => {
504
504
505
505
const result = await script ( option ) ;
506
506
expect ( activeRelease ) . not . toHaveBeenCalled ( ) ;
507
- expect ( getPlugin ) . toHaveBeenCalledTimes ( 5 ) ;
507
+ expect ( getPlugin ) . toHaveBeenCalledTimes ( 3 ) ;
508
508
expect ( getPlugin ) . toHaveBeenCalledWith ( configuredPlugin1 . unique_name ) ;
509
509
expect ( getPlugin ) . not . toHaveBeenCalledWith ( configuredPlugin2 . unique_name ) ;
510
510
expect ( getPlugin ) . toHaveBeenCalledWith ( configuredPlugin1 . plugin_sid ) ;
511
511
expect ( getPlugin ) . toHaveBeenCalledWith ( configuredPlugin2 . plugin_sid ) ;
512
- expect ( getVersion ) . toHaveBeenCalledTimes ( 5 ) ;
512
+ expect ( getVersion ) . toHaveBeenCalledTimes ( 3 ) ;
513
513
expect ( getVersion ) . toHaveBeenCalledWith ( plugin1 . unique_name , 'version1' ) ;
514
514
expect ( getVersion ) . toHaveBeenCalledWith ( plugin1 . sid , pluginVersion1 . sid ) ;
515
515
expect ( getVersion ) . not . toHaveBeenCalledWith ( plugin2 . unique_name , pluginVersion2 . version ) ;
@@ -585,10 +585,10 @@ describe('CreateConfigurationScript', () => {
585
585
586
586
const result = await script ( option ) ;
587
587
expect ( activeRelease ) . toHaveBeenCalledTimes ( 1 ) ;
588
- expect ( getPlugin ) . toHaveBeenCalledTimes ( 3 ) ;
588
+ expect ( getPlugin ) . toHaveBeenCalledTimes ( 2 ) ;
589
589
expect ( getPlugin ) . toHaveBeenCalledWith ( configuredPlugin1 . unique_name ) ;
590
590
expect ( getPlugin ) . toHaveBeenCalledWith ( configuredPlugin1 . plugin_sid ) ;
591
- expect ( getVersion ) . toHaveBeenCalledTimes ( 3 ) ;
591
+ expect ( getVersion ) . toHaveBeenCalledTimes ( 2 ) ;
592
592
expect ( getVersion ) . toHaveBeenCalledWith ( plugin1 . unique_name , 'version1' ) ;
593
593
expect ( getVersion ) . toHaveBeenCalledWith ( plugin1 . sid , pluginVersion1 . sid ) ;
594
594
expect ( getLatestVersion ) . not . toHaveBeenCalled ( ) ;
0 commit comments