@@ -54,16 +54,15 @@ describe('test/unit/lib/cli/interactive-setup/service.test.js', () => {
5454
5555 it ( "Should abort if user doesn't want setup" , async ( ) => {
5656 configureInquirerStub ( inquirer , {
57- confirm : { shouldCreateNewProject : false } ,
57+ list : { shouldCreateNewProject : 'No' } ,
5858 } ) ;
5959 await step . run ( { options : { } } ) ;
6060 return confirmEmptyWorkingDir ( ) ;
6161 } ) ;
6262
6363 it ( "Should abort if user choses 'other' template" , async ( ) => {
6464 configureInquirerStub ( inquirer , {
65- confirm : { shouldCreateNewProject : true } ,
66- list : { projectType : 'other' } ,
65+ list : { projectType : 'other' , shouldCreateNewProject : 'Yes' } ,
6766 } ) ;
6867 await step . run ( { options : { } } ) ;
6968 return confirmEmptyWorkingDir ( ) ;
@@ -90,8 +89,7 @@ describe('test/unit/lib/cli/interactive-setup/service.test.js', () => {
9089 } ) ;
9190
9291 configureInquirerStub ( inquirer , {
93- confirm : { shouldCreateNewProject : true } ,
94- list : { projectType : 'aws-nodejs' } ,
92+ list : { projectType : 'aws-nodejs' , shouldCreateNewProject : 'Yes' } ,
9593 input : { projectName : 'test-project' } ,
9694 } ) ;
9795 await mockedStep . run ( { options : { } } ) ;
@@ -125,8 +123,7 @@ describe('test/unit/lib/cli/interactive-setup/service.test.js', () => {
125123 } ) ;
126124
127125 configureInquirerStub ( inquirer , {
128- confirm : { shouldCreateNewProject : true } ,
129- list : { projectType : 'aws-nodejs' } ,
126+ list : { projectType : 'aws-nodejs' , shouldCreateNewProject : 'Yes' } ,
130127 input : { projectName : 'test-project-template' } ,
131128 } ) ;
132129 await mockedStep . run ( { options : { } } ) ;
@@ -165,8 +162,7 @@ describe('test/unit/lib/cli/interactive-setup/service.test.js', () => {
165162 } ) ;
166163
167164 configureInquirerStub ( inquirer , {
168- confirm : { shouldCreateNewProject : true } ,
169- list : { projectType : 'aws-nodejs' } ,
165+ list : { shouldCreateNewProject : 'Yes' , projectType : 'aws-nodejs' } ,
170166 input : { projectName : 'test-project-package-json' } ,
171167 } ) ;
172168 await mockedStep . run ( { options : { } } ) ;
@@ -204,8 +200,7 @@ describe('test/unit/lib/cli/interactive-setup/service.test.js', () => {
204200 } ) ;
205201
206202 configureInquirerStub ( inquirer , {
207- confirm : { shouldCreateNewProject : true } ,
208- list : { projectType : 'aws-nodejs' } ,
203+ list : { projectType : 'aws-nodejs' , shouldCreateNewProject : 'Yes' } ,
209204 input : { projectName : 'test-project-missing-npm' } ,
210205 } ) ;
211206
@@ -242,8 +237,7 @@ describe('test/unit/lib/cli/interactive-setup/service.test.js', () => {
242237 } ) ;
243238
244239 configureInquirerStub ( inquirer , {
245- confirm : { shouldCreateNewProject : true } ,
246- list : { projectType : 'aws-nodejs' } ,
240+ list : { projectType : 'aws-nodejs' , shouldCreateNewProject : 'Yes' } ,
247241 input : { projectName : 'test-project-failed-install' } ,
248242 } ) ;
249243
@@ -360,8 +354,7 @@ describe('test/unit/lib/cli/interactive-setup/service.test.js', () => {
360354 } ,
361355 } ) ;
362356 configureInquirerStub ( inquirer , {
363- confirm : { shouldCreateNewProject : true } ,
364- list : { projectType : 'aws-nodejs' } ,
357+ list : { projectType : 'aws-nodejs' , shouldCreateNewProject : 'Yes' } ,
365358 input : { projectName : 'test-error-during-download' } ,
366359 } ) ;
367360 await expect ( mockedStep . run ( { options : { } } ) ) . to . be . eventually . rejected . and . have . property (
@@ -403,8 +396,7 @@ describe('test/unit/lib/cli/interactive-setup/service.test.js', () => {
403396
404397 it ( 'Should not allow project creation in a directory in which already service is configured' , async ( ) => {
405398 configureInquirerStub ( inquirer , {
406- confirm : { shouldCreateNewProject : true } ,
407- list : { projectType : 'aws-nodejs' } ,
399+ list : { projectType : 'aws-nodejs' , shouldCreateNewProject : 'Yes' } ,
408400 input : { projectName : 'existing' } ,
409401 } ) ;
410402
@@ -430,8 +422,7 @@ describe('test/unit/lib/cli/interactive-setup/service.test.js', () => {
430422
431423 it ( 'Should not allow project creation using an invalid project name' , async ( ) => {
432424 configureInquirerStub ( inquirer , {
433- confirm : { shouldCreateNewProject : true } ,
434- list : { projectType : 'aws-nodejs' } ,
425+ list : { projectType : 'aws-nodejs' , shouldCreateNewProject : 'Yes' } ,
435426 input : { projectName : 'elo grzegżółka' } ,
436427 } ) ;
437428 await expect ( step . run ( { options : { } } ) ) . to . eventually . be . rejected . and . have . property (
0 commit comments