From f1d443b1144efe923f51285b39ebd4d4f9d43096 Mon Sep 17 00:00:00 2001 From: hannes Date: Sun, 16 Dec 2018 19:06:31 +0100 Subject: [PATCH] fix(format): add new line to result (#518) #504 --- @commitlint/format/src/index.js | 2 +- @commitlint/format/src/index.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/@commitlint/format/src/index.js b/@commitlint/format/src/index.js index 81ff37f00e..c9ead5d0cb 100644 --- a/@commitlint/format/src/index.js +++ b/@commitlint/format/src/index.js @@ -62,7 +62,7 @@ function formatResult(result = {}, options = {}) { const decoration = enabled ? chalk[color](sign) : sign; const summary = `${decoration} found ${errors.length} problems, ${ warnings.length - } warnings \n (Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint)`; + } warnings \n (Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint)\n\n`; return [...problems, enabled ? chalk.bold(summary) : summary]; } diff --git a/@commitlint/format/src/index.test.js b/@commitlint/format/src/index.test.js index e77c7e73eb..3abfbd522e 100644 --- a/@commitlint/format/src/index.test.js +++ b/@commitlint/format/src/index.test.js @@ -6,7 +6,7 @@ import format from '.'; const ok = chalk.bold( `${chalk.green( '✔' - )} found 0 problems, 0 warnings \n (Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint)` + )} found 0 problems, 0 warnings \n (Need help? -> https://github.com/marionebl/commitlint#what-is-commitlint)\n\n` ); test('does nothing without arguments', t => {