@@ -35,22 +35,22 @@ describe('cordova/lib/run', () => {
35
35
beforeEach ( ( ) => {
36
36
spyOn ( events , 'emit' ) ;
37
37
spyOn ( run , 'execListDevices' ) . and . returnValue ( Promise . resolve ( [ 'iPhone Xs' ] ) ) ;
38
- spyOn ( run , 'execListEmulatorTargets ' ) . and . returnValue ( Promise . resolve ( [ 'iPhone 15 Simulator' ] ) ) ;
38
+ spyOn ( run , 'execListEmulatorImages ' ) . and . returnValue ( Promise . resolve ( [ 'iPhone 15 Simulator' ] ) ) ;
39
39
} ) ;
40
40
41
41
it ( 'should delegate to "listDevices" when the "runListDevices" method options param contains "options.device".' , ( ) => {
42
42
return run . runListDevices ( { options : { device : true } } ) . then ( ( ) => {
43
43
expect ( run . execListDevices ) . toHaveBeenCalled ( ) ;
44
- expect ( run . execListEmulatorTargets ) . not . toHaveBeenCalled ( ) ;
44
+ expect ( run . execListEmulatorImages ) . not . toHaveBeenCalled ( ) ;
45
45
46
46
expect ( events . emit ) . toHaveBeenCalledWith ( 'log' , '\tiPhone Xs' ) ;
47
47
} ) ;
48
48
} ) ;
49
49
50
- it ( 'should delegate to "listDevices " when the "runListDevices" method options param contains "options.emulator".' , ( ) => {
50
+ it ( 'should delegate to "listEmulators " when the "runListDevices" method options param contains "options.emulator".' , ( ) => {
51
51
return run . runListDevices ( { options : { emulator : true } } ) . then ( ( ) => {
52
52
expect ( run . execListDevices ) . not . toHaveBeenCalled ( ) ;
53
- expect ( run . execListEmulatorTargets ) . toHaveBeenCalled ( ) ;
53
+ expect ( run . execListEmulatorImages ) . toHaveBeenCalled ( ) ;
54
54
55
55
expect ( events . emit ) . toHaveBeenCalledWith ( 'log' , '\tiPhone 15 Simulator' ) ;
56
56
} ) ;
@@ -59,7 +59,7 @@ describe('cordova/lib/run', () => {
59
59
it ( 'should delegate to both "listEmulators" and "listDevices" when the "runListDevices" method does not contain "options.device" or "options.emulator".' , ( ) => {
60
60
return run . runListDevices ( ) . then ( ( ) => {
61
61
expect ( run . execListDevices ) . toHaveBeenCalled ( ) ;
62
- expect ( run . execListEmulatorTargets ) . toHaveBeenCalled ( ) ;
62
+ expect ( run . execListEmulatorImages ) . toHaveBeenCalled ( ) ;
63
63
64
64
expect ( events . emit ) . toHaveBeenCalledWith ( 'log' , '\tiPhone Xs' ) ;
65
65
expect ( events . emit ) . toHaveBeenCalledWith ( 'log' , '\tiPhone 15 Simulator' ) ;
@@ -80,7 +80,7 @@ describe('cordova/lib/run', () => {
80
80
spyOn ( build , 'run' ) . and . returnValue ( Promise . resolve ( ) ) ;
81
81
spyOn ( projectFile , 'parse' ) . and . returnValue ( fakeXcodeProject ) ;
82
82
spyOn ( run , 'execListDevices' ) . and . resolveTo ( [ ] ) ;
83
- spyOn ( run , 'execListEmulatorTargets ' ) . and . resolveTo ( [ ] ) ;
83
+ spyOn ( run , 'execListEmulatorImages ' ) . and . resolveTo ( [ ] ) ;
84
84
spyOn ( run , 'listDevices' ) . and . resolveTo ( ) ;
85
85
spyOn ( run , 'deployToMac' ) . and . resolveTo ( ) ;
86
86
spyOn ( run , 'deployToSim' ) . and . resolveTo ( ) ;
0 commit comments