Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class UpdateNotifier {
chalk().cyan(format(' sudo chown -R $USER:$(id -gn $USER) %s ', xdgBasedir().config));

process.on('exit', () => {
console.error('\n' + boxen()(message, {align: 'center'}));
console.error(boxen()(message, {align: 'center'}));
});
}
}
Expand Down Expand Up @@ -151,7 +151,7 @@ class UpdateNotifier {
borderStyle: 'round'
};

const message = '\n' + boxen()(
const message = boxen()(
pupa()(template, {
packageName: this.packageName,
currentVersion: this.update.current,
Expand Down
2 changes: 0 additions & 2 deletions test/notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ test('use pretty boxen message by default', t => {
notifier.notify({defer: false, isGlobal: true});

t.is(stripAnsi(errorLogs), `

╭───────────────────────────────────────────────────╮
│ │
│ Update available 0.0.2 → 1.0.0 │
Expand Down Expand Up @@ -83,7 +82,6 @@ test('supports message with placeholders', t => {
});

t.is(stripAnsi(errorLogs), `

╭─────────────────────────────────────────────────────╮
│ │
│ Package Name: update-notifier-tester │
Expand Down