Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(update-notifier): don't force black background #3499

Merged
merged 1 commit into from Jul 12, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/utils/update-notifier.js
Expand Up @@ -111,9 +111,8 @@ const updateNotifier = async (npm, spec = 'latest') => {
`${oldc} -> ${latestc}\n` +
`Changelog: ${changelogc}\n` +
`Run ${cmdc} to update!\n`
const messagec = !useColor ? message : chalk.bgBlack.white(message)

return messagec
return message
}

// only update the notification timeout if we actually finished checking
Expand Down
60 changes: 30 additions & 30 deletions tap-snapshots/test/lib/utils/update-notifier.js.test.cjs
Expand Up @@ -6,11 +6,11 @@
*/
'use strict'
exports[`test/lib/utils/update-notifier.js TAP notification situations major to current > color 1`] = `

New major version of npm available! 122.420.69 -> 123.420.69
Changelog: https://github.com/npm/cli/releases/tag/v123.420.69
Run npm install -g npm@123.420.69 to update!


New major version of npm available! 122.420.69 -> 123.420.69
Changelog: https://github.com/npm/cli/releases/tag/v123.420.69
Run npm install -g npm@123.420.69 to update!

`

exports[`test/lib/utils/update-notifier.js TAP notification situations major to current > no color 1`] = `
Expand All @@ -22,11 +22,11 @@ Run \`npm install -g npm@123.420.69\` to update!
`

exports[`test/lib/utils/update-notifier.js TAP notification situations minor to current > color 1`] = `

New minor version of npm available! 123.419.69 -> 123.420.69
Changelog: https://github.com/npm/cli/releases/tag/v123.420.69
Run npm install -g npm@123.420.69 to update!


New minor version of npm available! 123.419.69 -> 123.420.69
Changelog: https://github.com/npm/cli/releases/tag/v123.420.69
Run npm install -g npm@123.420.69 to update!

`

exports[`test/lib/utils/update-notifier.js TAP notification situations minor to current > no color 1`] = `
Expand All @@ -38,11 +38,11 @@ Run \`npm install -g npm@123.420.69\` to update!
`

exports[`test/lib/utils/update-notifier.js TAP notification situations minor to next version > color 1`] = `

New minor version of npm available! 123.420.70 -> 123.421.70
Changelog: https://github.com/npm/cli/releases/tag/v123.421.70
Run npm install -g npm@123.421.70 to update!


New minor version of npm available! 123.420.70 -> 123.421.70
Changelog: https://github.com/npm/cli/releases/tag/v123.421.70
Run npm install -g npm@123.421.70 to update!

`

exports[`test/lib/utils/update-notifier.js TAP notification situations minor to next version > no color 1`] = `
Expand All @@ -54,11 +54,11 @@ Run \`npm install -g npm@123.421.70\` to update!
`

exports[`test/lib/utils/update-notifier.js TAP notification situations new beta available > color 1`] = `

New prerelease version of npm available! 124.0.0-beta.0 -> 124.0.0-beta.99999
Changelog: https://github.com/npm/cli/releases/tag/v124.0.0-beta.99999
Run npm install -g npm@124.0.0-beta.99999 to update!


New prerelease version of npm available! 124.0.0-beta.0 -> 124.0.0-beta.99999
Changelog: https://github.com/npm/cli/releases/tag/v124.0.0-beta.99999
Run npm install -g npm@124.0.0-beta.99999 to update!

`

exports[`test/lib/utils/update-notifier.js TAP notification situations new beta available > no color 1`] = `
Expand All @@ -70,11 +70,11 @@ Run \`npm install -g npm@124.0.0-beta.99999\` to update!
`

exports[`test/lib/utils/update-notifier.js TAP notification situations patch to current > color 1`] = `

New patch version of npm available! 123.420.68 -> 123.420.69
Changelog: https://github.com/npm/cli/releases/tag/v123.420.69
Run npm install -g npm@123.420.69 to update!


New patch version of npm available! 123.420.68 -> 123.420.69
Changelog: https://github.com/npm/cli/releases/tag/v123.420.69
Run npm install -g npm@123.420.69 to update!

`

exports[`test/lib/utils/update-notifier.js TAP notification situations patch to current > no color 1`] = `
Expand All @@ -86,11 +86,11 @@ Run \`npm install -g npm@123.420.69\` to update!
`

exports[`test/lib/utils/update-notifier.js TAP notification situations patch to next version > color 1`] = `

New patch version of npm available! 123.421.69 -> 123.421.70
Changelog: https://github.com/npm/cli/releases/tag/v123.421.70
Run npm install -g npm@123.421.70 to update!


New patch version of npm available! 123.421.69 -> 123.421.70
Changelog: https://github.com/npm/cli/releases/tag/v123.421.70
Run npm install -g npm@123.421.70 to update!

`

exports[`test/lib/utils/update-notifier.js TAP notification situations patch to next version > no color 1`] = `
Expand Down