Skip to content

Commit d2e8b57

Browse files
committed
Test: add confirm test
1 parent 1800c8e commit d2e8b57

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/questions.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,10 @@ test('COMMIT | when and default functions in questions', (t) => {
124124
t.is(questionsList[4].when({ moreInfo: false }), false);
125125
t.deepEqual(questionsList[4].default({ type: ':wrench: Chore:', description: 'This is a commit message!', moreInfo: true }), ':wrench: Chore: This is a commit message!\n\n\n');
126126
});
127+
128+
test('CONFIRM EDITOR | check if it shows if it has to', (t) => {
129+
const config = getConfig();
130+
const questionsList = questions(config);
131+
132+
t.is(questionsList[3].when(), config.questions.moreInfo);
133+
});

0 commit comments

Comments
 (0)