Skip to content

Commit 9a374e3

Browse files
committed
Test: better test description
1 parent 9cf843c commit 9a374e3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/questions.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test.after.always(() => {
4040
fs.renameSync(path.join(cwd, '.sgcrc_default'), path.join(cwd, '.sgcrc'));
4141
});
4242

43-
test('choices are rendered without emojis', (t) => {
43+
test('choices are rendered without emoji', (t) => {
4444
const sgc = getConfig(path.join(fixtures, '.sgcrc'));
4545
const choicesList = choices(sgc);
4646

@@ -68,7 +68,7 @@ test('choices with inherit mode | some', (t) => {
6868
t.deepEqual(sgc, ownConfig);
6969
});
7070

71-
test('choices are rendered with emojis (default)', (t) => {
71+
test('choices are rendered with emoji (default)', (t) => {
7272
const sgc = getConfig(path.join(fixtures, '.sgcrc'));
7373

7474
sgc.emoji = true;
@@ -85,38 +85,38 @@ test('check the values of the question object', (t) => {
8585
t.is(typeof questionsList, 'object');
8686
});
8787

88-
test('check if scope is off by default', (t) => {
88+
test('SCOPE | check if scope is off by default', (t) => {
8989
const config = getConfig();
9090
const questionsList = questions(config);
9191

9292
t.is(questionsList[1].when(), false);
9393
});
9494

95-
test('check if scope filters correctly', (t) => {
95+
test('SCOPE | check if scope filters correctly', (t) => {
9696
const config = getConfig();
9797
const questionsList = questions(config);
9898

9999
t.is(questionsList[1].filter('answer'), '(answer)');
100100
t.is(questionsList[1].filter(''), '');
101101
});
102102

103-
test('check if scope validates correctly', (t) => {
103+
test('SCOPE | check if scope validates correctly', (t) => {
104104
const config = getConfig();
105105
const questionsList = questions(config);
106106

107107
t.is(questionsList[1].validate('not correct'), 'No whitespaces allowed');
108108
t.is(questionsList[1].validate('correct'), true);
109109
});
110110

111-
test('validate functions in questions', (t) => {
111+
test('COMMIT | validate functions in questions', (t) => {
112112
const config = getConfig();
113113
const questionsList = questions(config);
114114

115115
t.is(questionsList[2].validate('input text'), true);
116116
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. Consider writing a body.\n');
117117
});
118118

119-
test('when and default functions in questions', (t) => {
119+
test('COMMIT | when and default functions in questions', (t) => {
120120
const config = getConfig();
121121
const questionsList = questions(config);
122122

0 commit comments

Comments
 (0)