Skip to content

Commit

Permalink
#984: corrected test
Browse files Browse the repository at this point in the history
  • Loading branch information
phjulia committed Aug 13, 2023
1 parent 92dfd6e commit 9934cbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/util/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions test/type.automation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9934cbd

Please sign in to comment.