@@ -33,13 +33,15 @@ describe(_getStartAndEndCommands, function() {
3333 let npxStub ;
3434 let spawnStub ;
3535 let readdirStub ;
36+ let overwriteBlueprintFilesStub ;
3637 let installAddonBlueprintStub ;
3738 let appendNodeModulesIgnoreStub ;
3839
3940 beforeEach ( function ( ) {
40- npxStub = sinon . stub ( _getStartAndEndCommands , 'npx' ) . resolves ( ) ;
41- spawnStub = sinon . stub ( _getStartAndEndCommands , 'spawn' ) . resolves ( ) ;
41+ npxStub = sinon . stub ( _getStartAndEndCommands , 'npx' ) . returns ( 'test npx' ) ;
42+ spawnStub = sinon . stub ( _getStartAndEndCommands , 'spawn' ) . returns ( 'test spawn' ) ;
4243 readdirStub = sinon . stub ( utils , 'readdir' ) . resolves ( [ 'foo' ] ) ;
44+ overwriteBlueprintFilesStub = sinon . stub ( _getStartAndEndCommands , 'overwriteBlueprintFiles' ) ;
4345 installAddonBlueprintStub = sinon . stub ( _getStartAndEndCommands , 'installAddonBlueprint' ) . resolves ( ) ;
4446 appendNodeModulesIgnoreStub = sinon . stub ( _getStartAndEndCommands , 'appendNodeModulesIgnore' ) . resolves ( ) ;
4547 } ) ;
@@ -131,6 +133,8 @@ describe(_getStartAndEndCommands, function() {
131133 cwd
132134 }
133135 ] ] ) ;
136+
137+ expect ( overwriteBlueprintFilesStub . args ) . to . deep . equal ( [ [ 'test spawn' ] ] ) ;
134138 } ) ;
135139
136140 it ( 'can create a partial project from cache' , async function ( ) {
@@ -186,6 +190,8 @@ describe(_getStartAndEndCommands, function() {
186190 }
187191 ]
188192 ] ) ;
193+
194+ expect ( overwriteBlueprintFilesStub . args ) . to . deep . equal ( [ [ 'test spawn' ] , [ 'test spawn' ] ] ) ;
189195 } ) ;
190196
191197 it ( 'can create a base project from remote' , async function ( ) {
@@ -217,6 +223,8 @@ describe(_getStartAndEndCommands, function() {
217223 cwd
218224 }
219225 ] ] ) ;
226+
227+ expect ( overwriteBlueprintFilesStub . args ) . to . deep . equal ( [ [ 'test npx' ] ] ) ;
220228 } ) ;
221229
222230 it ( 'can create a partial project from remote' , async function ( ) {
@@ -271,6 +279,8 @@ describe(_getStartAndEndCommands, function() {
271279 }
272280 ]
273281 ] ) ;
282+
283+ expect ( overwriteBlueprintFilesStub . args ) . to . deep . equal ( [ [ 'test npx' ] , [ 'test npx' ] ] ) ;
274284 } ) ;
275285
276286 describe ( 'custom blueprint' , function ( ) {
@@ -404,6 +414,8 @@ describe(_getStartAndEndCommands, function() {
404414 }
405415 ] ] ) ;
406416
417+ expect ( overwriteBlueprintFilesStub . args ) . to . deep . equal ( [ [ 'test spawn' ] ] ) ;
418+
407419 expect ( installAddonBlueprintStub ) . to . not . be . called ;
408420
409421 expect ( appendNodeModulesIgnoreStub . args ) . to . deep . equal ( [ [ {
@@ -467,6 +479,8 @@ describe(_getStartAndEndCommands, function() {
467479 ]
468480 ] ) ;
469481
482+ expect ( overwriteBlueprintFilesStub . args ) . to . deep . equal ( [ [ 'test spawn' ] , [ 'test spawn' ] ] ) ;
483+
470484 expect ( installAddonBlueprintStub ) . to . not . be . called ;
471485
472486 expect ( appendNodeModulesIgnoreStub . args ) . to . deep . equal ( [ [ {
@@ -509,6 +523,8 @@ describe(_getStartAndEndCommands, function() {
509523 }
510524 ] ] ) ;
511525
526+ expect ( overwriteBlueprintFilesStub . args ) . to . deep . equal ( [ [ 'test npx' ] ] ) ;
527+
512528 expect ( installAddonBlueprintStub ) . to . not . be . called ;
513529
514530 expect ( appendNodeModulesIgnoreStub . args ) . to . deep . equal ( [ [ {
@@ -569,6 +585,8 @@ describe(_getStartAndEndCommands, function() {
569585 ]
570586 ] ) ;
571587
588+ expect ( overwriteBlueprintFilesStub . args ) . to . deep . equal ( [ [ 'test npx' ] , [ 'test npx' ] ] ) ;
589+
572590 expect ( installAddonBlueprintStub ) . to . not . be . called ;
573591
574592 expect ( appendNodeModulesIgnoreStub . args ) . to . deep . equal ( [ [ {
@@ -618,6 +636,8 @@ describe(_getStartAndEndCommands, function() {
618636 ]
619637 ] ) ;
620638
639+ expect ( overwriteBlueprintFilesStub . args ) . to . deep . equal ( [ [ 'test spawn' ] ] ) ;
640+
621641 expect ( installAddonBlueprintStub . args ) . to . deep . equal ( [ [ {
622642 projectRoot,
623643 blueprint : {
@@ -669,6 +689,8 @@ describe(_getStartAndEndCommands, function() {
669689 ]
670690 ] ) ;
671691
692+ expect ( overwriteBlueprintFilesStub . args ) . to . deep . equal ( [ [ 'test npx' ] ] ) ;
693+
672694 expect ( installAddonBlueprintStub . args ) . to . deep . equal ( [ [ {
673695 projectRoot,
674696 blueprint : {
0 commit comments