@@ -35,15 +35,15 @@ describe('@ionic/cli', () => {
3535 it ( 'should throw for fs error' , ( ) => {
3636 jest . spyOn ( fsExtraSpy , 'readJson' ) . mockImplementation ( async ( ) => { throw new Error ( 'error' ) } ) ;
3737
38- const p = project . getAndroidBuildOutputJson ( '/path/to/output.json' ) ;
39- expect ( p ) . rejects . toThrowError ( 'Could not parse build output file' ) ;
38+ const p = project . getAndroidBuildOutputJson ( [ '/path/to/output.json' ] ) ;
39+ expect ( p ) . rejects . toThrowError ( 'Could not find or parse valid build output file' ) ;
4040 } ) ;
4141
4242 it ( 'should throw for unrecognized format' , ( ) => {
4343 jest . spyOn ( fsExtraSpy , 'readJson' ) . mockImplementation ( async ( ) => ( { foo : 'bar' } ) ) ;
4444
45- const p = project . getAndroidBuildOutputJson ( '/path/to/output.json' ) ;
46- expect ( p ) . rejects . toThrowError ( 'Could not parse build output file' ) ;
45+ const p = project . getAndroidBuildOutputJson ( [ '/path/to/output.json' ] ) ;
46+ expect ( p ) . rejects . toThrowError ( 'Could not find or parse valid build output file' ) ;
4747 } ) ;
4848
4949 it ( 'should parse legacy output.json' , ( ) => {
@@ -58,7 +58,7 @@ describe('@ionic/cli', () => {
5858
5959 jest . spyOn ( fsExtraSpy , 'readJson' ) . mockImplementation ( async ( ) => file ) ;
6060
61- const p = project . getAndroidBuildOutputJson ( '/path/to/output.json' ) ;
61+ const p = project . getAndroidBuildOutputJson ( [ '/path/to/output.json' ] ) ;
6262 expect ( p ) . resolves . toEqual ( file ) ;
6363 } ) ;
6464
@@ -76,7 +76,7 @@ describe('@ionic/cli', () => {
7676
7777 jest . spyOn ( fsExtraSpy , 'readJson' ) . mockImplementation ( async ( ) => file ) ;
7878
79- const p = project . getAndroidBuildOutputJson ( '/path/to/output.json' ) ;
79+ const p = project . getAndroidBuildOutputJson ( [ '/path/to/output.json' ] ) ;
8080 expect ( p ) . resolves . toEqual ( file ) ;
8181 } ) ;
8282
0 commit comments