File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
packages/aws-cdk/test/cli Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -448,17 +448,17 @@ describe('gc command warning tests', () => {
448448 context : { get : ( ) => [ ] } ,
449449 loadConfigFiles : jest . fn ( ) . mockResolvedValue ( undefined ) ,
450450 } ;
451-
451+
452452 ( Configuration as any ) . mockImplementation ( ( ) => mockConfig ) ;
453453 Configuration . fromArgsAndFiles = jest . fn ( ) . mockImplementation ( ( ) => mockConfig ) ;
454454 jest . spyOn ( cdkToolkitModule . CdkToolkit . prototype , 'garbageCollect' ) . mockResolvedValue ( ) ;
455- jest . spyOn ( CliIoHost , 'instance' ) . mockReturnValue ( {
456- defaults : {
455+ jest . spyOn ( CliIoHost , 'instance' ) . mockReturnValue ( {
456+ defaults : {
457457 warn : mockWarn ,
458458 debug : jest . fn ( ) ,
459459 info : jest . fn ( ) ,
460460 error : jest . fn ( ) ,
461- trace : jest . fn ( )
461+ trace : jest . fn ( ) ,
462462 } ,
463463 noticesDestination : 'stderr' ,
464464 notify : jest . fn ( ) ,
@@ -468,12 +468,12 @@ describe('gc command warning tests', () => {
468468 debug : jest . fn ( ) ,
469469 info : jest . fn ( ) ,
470470 error : jest . fn ( ) ,
471- trace : jest . fn ( )
472- }
471+ trace : jest . fn ( ) ,
472+ } ,
473473 } ) ,
474- startTelemetry : jest . fn ( ) . mockResolvedValue ( undefined )
474+ startTelemetry : jest . fn ( ) . mockResolvedValue ( undefined ) ,
475475 } as any ) ;
476-
476+
477477 await exec ( [ 'gc' , '--role-arn' , 'test-role' , '--unstable=gc' ] ) ;
478478 expect ( mockWarn ) . toHaveBeenCalledWith ( 'The --role-arn option is not supported for the gc command and will be ignored.' ) ;
479479 } ) ;
You can’t perform that action at this time.
0 commit comments