@@ -191,14 +191,14 @@ describe("commands-service", () => {
191191 } ) ;
192192 } ) ;
193193
194- describe ( "executeCommandInProcess " , ( ) => {
194+ describe ( "runCommand " , ( ) => {
195195 it ( "primes the command's declared options before it runs" , async ( ) => {
196196 const { injector, record } = createDispatchInjector ( null ) ;
197197 const command = definedCommand ( record , { allowUnknownOptions : true } ) ;
198198 injector . resolveCommand = ( ) => command ;
199199 const service = injector . resolve ( CommandsService ) ;
200200
201- await service . executeCommandInProcess ( "open|ios" ) ;
201+ await service . runCommand ( "open|ios" ) ;
202202
203203 assert . deepEqual ( record . primedWith , [
204204 { dashedOptions : command . dashedOptions , allowUnknown : true } ,
@@ -212,7 +212,7 @@ describe("commands-service", () => {
212212 injector . resolveCommand = ( ) => definedCommand ( record ) ;
213213 const service = injector . resolve ( CommandsService ) ;
214214
215- await service . executeCommandInProcess ( "open|ios" ) ;
215+ await service . runCommand ( "open|ios" ) ;
216216
217217 assert . deepEqual ( options . options , { watch : cliOption } ) ;
218218 assert . strictEqual ( options . argv , initialArgv ) ;
@@ -229,7 +229,7 @@ describe("commands-service", () => {
229229 } ) ;
230230 const service = injector . resolve ( CommandsService ) ;
231231
232- await assert . isRejected ( service . executeCommandInProcess ( "open|ios" ) ) ;
232+ await assert . isRejected ( service . runCommand ( "open|ios" ) ) ;
233233
234234 assert . deepEqual ( options . options , { watch : cliOption } ) ;
235235 assert . strictEqual ( options . argv , initialArgv ) ;
@@ -244,7 +244,7 @@ describe("commands-service", () => {
244244 const service = injector . resolve ( CommandsService ) ;
245245
246246 await assert . isRejected (
247- service . executeCommandInProcess ( "open|ios" ) ,
247+ service . runCommand ( "open|ios" ) ,
248248 "Command 'open|ios' cannot be executed." ,
249249 ) ;
250250
@@ -258,7 +258,7 @@ describe("commands-service", () => {
258258 const service = injector . resolve ( CommandsService ) ;
259259
260260 await assert . isRejected (
261- service . executeCommandInProcess ( "open|ios" , [ "extra" ] ) ,
261+ service . runCommand ( "open|ios" , [ "extra" ] ) ,
262262 "This command doesn't accept parameters." ,
263263 ) ;
264264
@@ -275,7 +275,7 @@ describe("commands-service", () => {
275275 } ) ;
276276 const service = injector . resolve ( CommandsService ) ;
277277
278- await service . executeCommandInProcess ( "install" , [ "lodash" ] ) ;
278+ await service . runCommand ( "install" , [ "lodash" ] ) ;
279279
280280 assert . deepEqual ( record . executed , [ [ "lodash" ] ] ) ;
281281 assert . deepEqual ( record . postCommandActions , [ [ "lodash" ] ] ) ;
@@ -294,7 +294,7 @@ describe("commands-service", () => {
294294
295295 let raised : Error = null ;
296296 try {
297- await service . executeCommandInProcess ( "open|ios" ) ;
297+ await service . runCommand ( "open|ios" ) ;
298298 } catch ( err ) {
299299 raised = err ;
300300 }
@@ -309,7 +309,7 @@ describe("commands-service", () => {
309309 const service = injector . resolve ( CommandsService ) ;
310310
311311 await assert . isRejected (
312- service . executeCommandInProcess ( "nope" ) ,
312+ service . runCommand ( "nope" ) ,
313313 "Unknown command 'nope'." ,
314314 ) ;
315315
@@ -322,8 +322,8 @@ describe("commands-service", () => {
322322 injector . resolveCommand = ( ) => definedCommand ( record ) ;
323323 const service = injector . resolve ( CommandsService ) ;
324324
325- await service . executeCommandInProcess ( "open|ios" ) ;
326- await service . executeCommandInProcess ( "open|ios" ) ;
325+ await service . runCommand ( "open|ios" ) ;
326+ await service . runCommand ( "open|ios" ) ;
327327
328328 assert . deepEqual ( record . executed , [ [ ] , [ ] ] ) ;
329329 assert . equal ( record . primedWith . length , 2 ) ;
@@ -334,7 +334,7 @@ describe("commands-service", () => {
334334 injector . resolveCommand = ( ) => definedCommand ( record ) ;
335335 const service = injector . resolve ( CommandsService ) ;
336336
337- await service . executeCommandInProcess ( "open|ios" ) ;
337+ await service . runCommand ( "open|ios" ) ;
338338
339339 assert . deepEqual ( record . hooks , [
340340 "before:open-ios" ,
0 commit comments