Skip to content

Commit e832eb6

Browse files
committed
Test: add empty commit message
1 parent fd0e5d7 commit e832eb6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/questions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ test('COMMIT | validate functions in questions', (t) => {
111111
const config = getConfig();
112112
const questionsList = questions(config);
113113

114+
t.is(questionsList[2].validate('', 'Fix: '), 'The commit message is not allowed to be empty');
114115
t.is(questionsList[2].validate('input text', 'Fix: '), true);
115116
t.is(questionsList[2].validate('This message has over 72 characters. So this test will definitely fail. I can guarantee that I am telling the truth', 'Fix: '), 'The commit message is not allowed to be longer as 72 character, but is 125 character long. Consider writing a body.\n');
116117
});

0 commit comments

Comments
 (0)