Skip to content

Commit 7a04709

Browse files
committed
feat(format): update tests conventional-changelog#471
1 parent fdd47b1 commit 7a04709

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

@commitlint/format/src/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ function formatResult(result = {}, options = {}) {
6262
const decoration = enabled ? chalk[color](sign) : sign;
6363
const summary = `${decoration} found ${errors.length} problems, ${
6464
warnings.length
65-
} warnings\n Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint
66-
`;
65+
} warnings \n (Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint)`;
6766
return [...problems, enabled ? chalk.bold(summary) : summary];
6867
}
6968

@commitlint/format/src/index.test.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import chalk from 'chalk';
33
import includes from 'lodash.includes';
44
import format from '.';
55

6-
const ok = chalk.bold(`${chalk.green('✔')} found 0 problems, 0 warnings`);
6+
const ok = chalk.bold(
7+
`${chalk.green(
8+
'✔'
9+
)} found 0 problems, 0 warnings \n (Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint)`
10+
);
711

812
test('does nothing without arguments', t => {
913
const actual = format();

0 commit comments

Comments
 (0)