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
diff options
context:
space:
mode:
authorMichele Azzolari <michele@azzolari.it>2020-10-30 09:22:10 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2020-10-30 20:33:51 +0300
commit2636fe1f45383cb1b6fc164564dc49318815db37 (patch)
treef1d244b35fe8f6249ac18a93b74516ed8376104d /test/lib/run-script.js
parent2a680e91a2be1f3f03a6fbd946f74628ee1cb370 (diff)
fix: in run-script, if loglevel is silent, disable banner option
Fixes issue #2023 PR-URL: https://github.com/npm/cli/pull/2086 Credit: @macno Close: #2086 Reviewed-by: @nlf
Diffstat (limited to 'test/lib/run-script.js')
-rw-r--r--test/lib/run-script.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/run-script.js b/test/lib/run-script.js
index 9f48b8f59..7a034aff0 100644
--- a/test/lib/run-script.js
+++ b/test/lib/run-script.js
@@ -253,6 +253,7 @@ t.test('skip pre/post hooks when using ignoreScripts', async t => {
postenv: 'echo after the env',
env: 'env'
} },
+ banner: true,
event: 'env'
}
])
@@ -295,7 +296,8 @@ t.test('run silent', async t => {
pkg: { name: 'x', version: '1.2.3', _id: 'x@1.2.3', scripts: {
env: 'env'
} },
- event: 'env'
+ event: 'env',
+ banner: false
},
{
event: 'postenv',