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:
authorfuhao.xu <fuhao.xu@yitu-inc.com>2020-12-29 13:56:34 +0300
committerisaacs <i@izs.me>2021-01-07 23:37:02 +0300
commitb2e2edf8aee57347c96a61209c7a10139a0cc85a (patch)
tree203661323e445f84cdb45efbc895a3777704453b /test
parent0fed44dea12f125b639b5e3575adcea74a86d3a0 (diff)
fix: npm publish --dry-run should not check login status
PR-URL: https://github.com/npm/cli/pull/2422 Credit: @buyan302 Close: #2422 Reviewed-by: @isaacs
Diffstat (limited to 'test')
-rw-r--r--test/lib/publish.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lib/publish.js b/test/lib/publish.js
index c1f353f6f..d4e41605d 100644
--- a/test/lib/publish.js
+++ b/test/lib/publish.js
@@ -193,7 +193,11 @@ t.test('should log tarball contents', (t) => {
dryRun: true,
registry: 'https://registry.npmjs.org/',
},
- config,
+ config: {
+ ...config,
+ getCredentialsByURI: () => {
+ throw new Error('should not call getCredentialsByURI!')
+ }},
},
'../../lib/utils/tar.js': {
getContents: () => ({