@@ -273,7 +273,7 @@ describe('emulate command', function() {
273273 spyOn ( npmScripts , 'runIonicScript' ) . andReturn ( Q ( true ) ) ;
274274
275275 emulate . run ( null , argv , rawCliArguments ) . then ( function ( ) {
276- expect ( npmScripts . runIonicScript ) . toHaveBeenCalledWith ( 'build' ) ;
276+ expect ( npmScripts . runIonicScript ) . toHaveBeenCalledWith ( 'build' , rawCliArguments . slice ( 2 ) ) ;
277277 expect ( cordovaUtils . execCordovaCommand ) . toHaveBeenCalledWith ( [ 'emulate' , 'android' ] , false , true ) ;
278278 done ( ) ;
279279 } ) . catch ( function ( e ) {
@@ -293,7 +293,7 @@ describe('emulate command', function() {
293293 spyOn ( npmScripts , 'runIonicScript' ) . andReturn ( Q ( true ) ) ;
294294
295295 emulate . run ( null , argv , rawCliArguments ) . then ( function ( ) {
296- expect ( npmScripts . runIonicScript ) . toHaveBeenCalledWith ( 'build' ) ;
296+ expect ( npmScripts . runIonicScript ) . toHaveBeenCalledWith ( 'build' , rawCliArguments . slice ( 2 ) ) ;
297297 expect ( cordovaUtils . execCordovaCommand ) . toHaveBeenCalledWith ( [ 'emulate' , 'android' ] , false , true ) ;
298298 done ( ) ;
299299 } ) . catch ( function ( e ) {
@@ -320,9 +320,11 @@ describe('emulate command', function() {
320320 emulate . run ( null , argv , rawCliArguments ) . then ( function ( ) {
321321 expect ( npmScripts . hasIonicScript ) . toHaveBeenCalledWith ( 'build' ) ;
322322 expect ( npmScripts . runIonicScript ) . toHaveBeenCalledWith ( 'serve' , [
323+ '--runLivereload' , '--isPlatformServe' , '--livereload' ,
323324 '--port' , jasmine . any ( Number ) ,
325+ '--livereload-port' , jasmine . any ( Number ) ,
324326 '--address' , jasmine . any ( String ) ,
325- '--liveReloadPort' , jasmine . any ( Number ) ,
327+ '--iscordovaserve' ,
326328 '--nobrowser'
327329 ] ) ;
328330 expect ( cordovaUtils . execCordovaCommand ) . toHaveBeenCalledWith ( [ 'emulate' , 'android' ] , true , true ) ;
0 commit comments