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:
authorRuy Adorno <ruyadorno@hotmail.com>2021-03-23 01:10:01 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-03-23 01:10:01 +0300
commitb7b4491bf1d9df70149f48bca6557e55acf5cee6 (patch)
tree523f8a071e6bce701624d55053494fa0f151a687 /test
parent15ee1aec3675bc026fc360f81b04bae4db84d942 (diff)
fix: which config
The default value for the `which` config option used in the `npm fund` command is now `null` instead of the previously used `undefined`.
Diffstat (limited to 'test')
-rw-r--r--test/lib/fund.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/fund.js b/test/lib/fund.js
index bd600dbf7..8c1000784 100644
--- a/test/lib/fund.js
+++ b/test/lib/fund.js
@@ -186,7 +186,7 @@ const config = {
json: false,
global: false,
unicode: false,
- which: undefined,
+ which: null,
}
const openUrl = async (npm, url, msg) => {
if (url === 'http://npmjs.org')
@@ -563,7 +563,7 @@ test('fund using nested packages with multiple sources, with a source number', t
t.ifError(err, 'should not error out')
t.matchSnapshot(printUrl, 'should open the numbered URL')
- config.which = undefined
+ config.which = null
printUrl = ''
t.end()
})
@@ -663,7 +663,7 @@ test('fund using bad which value', t => {
'should have bad which option error message'
)
- config.which = undefined
+ config.which = null
result = ''
t.end()
})