Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-03-24 20:42:28 +0300
committerGar <gar+gh@danger.computer>2021-03-24 20:51:52 +0300
commitaba2bc623ea99e563b1b15b81dbb4ba94f86fe4c (patch)
tree90d264c0057dd0ad3b4063e3822dc82a47dddc61 /test
parente8d2adcf40ad63030f844c9aa44c6d16e2146797 (diff)
fix(progress): re-add progress bar to reify
The logger was no longer in flatOptions, we pass it in explicitly now PR-URL: https://github.com/npm/cli/pull/2944 Credit: @wraithgar Close: #2944 Reviewed-by: @nlf
Diffstat (limited to 'test')
-rw-r--r--test/lib/update.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/lib/update.js b/test/lib/update.js
index 695218a7f..780484afb 100644
--- a/test/lib/update.js
+++ b/test/lib/update.js
@@ -10,6 +10,7 @@ const config = {
const noop = () => null
const npm = mockNpm({
globalDir: '',
+ log: noop,
config,
prefix: '',
})
@@ -38,7 +39,7 @@ t.test('no args', t => {
constructor (args) {
t.deepEqual(
args,
- { ...npm.flatOptions, path: npm.prefix },
+ { ...npm.flatOptions, path: npm.prefix, log: noop },
'should call arborist contructor with expected args'
)
}
@@ -72,7 +73,7 @@ t.test('with args', t => {
constructor (args) {
t.deepEqual(
args,
- { ...npm.flatOptions, path: npm.prefix },
+ { ...npm.flatOptions, path: npm.prefix, log: noop },
'should call arborist contructor with expected args'
)
}
@@ -140,7 +141,7 @@ t.test('update --global', t => {
const { path, ...opts } = args
t.deepEqual(
opts,
- npm.flatOptions,
+ { ...npm.flatOptions, log: noop },
'should call arborist contructor with expected options'
)