diff --git a/lib/util/cli.js b/lib/util/cli.js index 20697920a..8a267231b 100644 --- a/lib/util/cli.js +++ b/lib/util/cli.js @@ -64,7 +64,7 @@ const Cli = { type: 'confirm', name: 'provideEmail', message: `To set run ${type} note, an email address should be set. Do you want to set it?`, - default: true, + default: false, }; const question2 = { type: 'input', diff --git a/test/type.automation.test.js b/test/type.automation.test.js index a183b8796..b2f5067ce 100644 --- a/test/type.automation.test.js +++ b/test/type.automation.test.js @@ -915,12 +915,12 @@ describe('type: automation', () => { ); return; }); - it('Should NOT update run completion note', async () => { - handler.setOptions({ completionNote: 'test' }); + it('Should NOT update run failure email address', async () => { + handler.setOptions({ errorEmail: 'error@test.accenture.com' }); const updatedNotifications = await handler.updateNotifications( 'testInstance/testBU', 'automation', - ['testExisting_automation_updateNotifications'] + ['testExisting_automation'] ); assert.equal( process.exitCode,