summaryrefslogtreecommitdiff
path: root/deps/npm/test/lib/utils/update-notifier.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/lib/utils/update-notifier.js')
-rw-r--r--deps/npm/test/lib/utils/update-notifier.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/deps/npm/test/lib/utils/update-notifier.js b/deps/npm/test/lib/utils/update-notifier.js
index a7a800c602..fa4af29476 100644
--- a/deps/npm/test/lib/utils/update-notifier.js
+++ b/deps/npm/test/lib/utils/update-notifier.js
@@ -84,12 +84,11 @@ t.afterEach(() => {
})
const runUpdateNotifier = async ({ color = true, ...npmOptions } = {}) => {
- const _npm = { ...defaultNpm, ...npmOptions }
+ const _npm = { ...defaultNpm, ...npmOptions, logColor: color }
await t.mock('../../../lib/utils/update-notifier.js', {
'@npmcli/ci-detect': () => ciMock,
pacote,
fs,
- npmlog: { useColor: () => color },
})(_npm)
return _npm.updateNotification
}