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:
authorisaacs <i@izs.me>2020-12-16 03:32:32 +0300
committerisaacs <i@izs.me>2020-12-18 22:38:41 +0300
commita9b8bf2634c627fbb16ca3a6bb2c2f1058c3e586 (patch)
tree8e51be0a095d76b489a2af43f1d8cc781699be40 /test/lib/npm.js
parenta92d310b7e9e4c48b08f52785c2e3a6d52a82ad7 (diff)
Support multiple set/get/deletes in npm configisaacs/config-set-multi
While digging into #2300, I realized it would be a lot easier if we could do this: npm config set email=me@example.com _auth=xxxx and avoid the whole issue of what gets set first. Also, why not let `npm config get foo bar baz` return just the keys specified? Also updates the docs, including the statement that `npm config set foo` with no value sets it to `true`, when as far as I can tell, that has never been the case. PR-URL: https://github.com/npm/cli/pull/2362 Credit: @isaacs Close: #2362 Reviewed-by: @nlf
Diffstat (limited to 'test/lib/npm.js')
-rw-r--r--test/lib/npm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/npm.js b/test/lib/npm.js
index 2c71d229a..dac9696ca 100644
--- a/test/lib/npm.js
+++ b/test/lib/npm.js
@@ -342,7 +342,7 @@ t.test('npm.load', t => {
/Completed in [0-9]+ms/,
],
])
- t.same(consoleLogs, [['@foo']])
+ t.same(consoleLogs, [['scope=@foo\n\u2010not-a-dash=undefined']])
})
// need this here or node 10 will improperly end the promise ahead of time