fix: always print a newline before summary

This commit is contained in:
Zoltan Kochan
2018-04-09 15:11:22 +03:00
parent 498746d058
commit 251e19d8f3
2 changed files with 2 additions and 1 deletions

View File

@@ -223,7 +223,7 @@ export default function (
const summaryOutput$ = most.combine(
(pkgsDiff) => {
let msg = ''
let msg = EOL
for (const depType of ['prod', 'optional', 'dev']) {
const diffs = R.values(pkgsDiff[depType])
if (diffs.length) {

View File

@@ -280,6 +280,7 @@ test('prints summary', t => {
t.equal(output, stripIndents`
${WARN} ${DEPRECATED} bar@2.0.0: This package was deprecated because bla bla bla
${h1('dependencies:')}
${ADD} bar ${versionColor('2.0.0')} ${DEPRECATED}
${SUB} foo ${versionColor('0.1.0')}