@@ -143,10 +143,10 @@ describe('optimize', () => {
143143 . stderr ( )
144144 . stdout ( )
145145 . command ( [ 'optimize' , unoptimizedYamlFile , '--no-tty' , '-o' , 'new-file' ] )
146- . it ( 'generate YAML output against YAML input.' , ( ctx , done ) => {
146+ . it ( 'generate YAML output against YAML input and show its path .' , ( ctx , done ) => {
147147 const pos = unoptimizedYamlFile . lastIndexOf ( '.' ) ;
148148 const optimizedFile = `${ unoptimizedYamlFile . substring ( 0 , pos ) } _optimized.${ unoptimizedYamlFile . substring ( pos + 1 ) } ` ;
149- expect ( ctx . stdout ) . to . contain ( ' ✅ Success! Your optimized file has been created at ' ) ;
149+ expect ( ctx . stdout ) . to . contain ( ` ✅ Success! Your optimized file has been created at ${ optimizedFile } .` ) ;
150150 expect ( ctx . stderr ) . to . equal ( '' ) ;
151151 expect ( fs . readFileSync ( optimizedFile , 'utf8' ) ) . to . contain ( 'asyncapi: 2.0.0' ) ;
152152 fs . unlinkSync ( optimizedFile ) ;
@@ -157,10 +157,10 @@ describe('optimize', () => {
157157 . stderr ( )
158158 . stdout ( )
159159 . command ( [ 'optimize' , unoptimizedJsonFile , '--no-tty' , '-o' , 'new-file' ] )
160- . it ( 'generate JSON output against JSON input.' , ( ctx , done ) => {
160+ . it ( 'generate JSON output against JSON input and show its path .' , ( ctx , done ) => {
161161 const pos = unoptimizedJsonFile . lastIndexOf ( '.' ) ;
162162 const optimizedFile = `${ unoptimizedJsonFile . substring ( 0 , pos ) } _optimized.${ unoptimizedJsonFile . substring ( pos + 1 ) } ` ;
163- expect ( ctx . stdout ) . to . contain ( ' ✅ Success! Your optimized file has been created at ' ) ;
163+ expect ( ctx . stdout ) . to . contain ( ` ✅ Success! Your optimized file has been created at ${ optimizedFile } .` ) ;
164164 expect ( ctx . stderr ) . to . equal ( '' ) ;
165165 expect ( fs . readFileSync ( optimizedFile , 'utf8' ) ) . to . contain ( '"asyncapi": "2.0.0"' ) ;
166166 fs . unlinkSync ( optimizedFile ) ;
0 commit comments