Skip to content

Commit 9b158dd

Browse files
committed
Test: for new feature show input length
1 parent cd39a38 commit 9b158dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/questions.js

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

114114
t.is(questionsList[2].validate('input text'), true);
115-
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'), 'The commit message is not allowed to be longer as 72, but is 115. Consider writing a body.\n');
115+
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'), 'The commit message is not allowed to be longer as 72 character, but is 115 character long. Consider writing a body.\n');
116116
});
117117

118118
test('COMMIT | when and default functions in questions', (t) => {

test/rules/ruleWarningMessages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ test('ruleWarningMessages', (t) => {
1111
},
1212
};
1313
const messages = ruleWaringMessages('input.', config);
14-
t.deepEqual(messages, 'The commit message has to be at least 10 character.\nThe commit message can not end with a dot\n');
14+
t.deepEqual(messages, 'The commit message has to be at least 10 character, but is only 6 character long.\nThe commit message can not end with a dot\n');
1515
});

0 commit comments

Comments
 (0)