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:
authornlf <quitlahok@gmail.com>2020-10-12 20:30:48 +0300
committerDarcy Clarke <darcy@darcyclarke.me>2020-10-13 01:56:26 +0300
commitefc6786bc2faa26075fdd84b10d4c72d9e301458 (patch)
tree9affc3037d419cf796d958f10c28f13f5941573e /test/lib/publish.js
parent1e4e6e9152bad264ef4c576ae211abcda780ba85 (diff)
fix: make sure publishConfig is passed through
Diffstat (limited to 'test/lib/publish.js')
-rw-r--r--test/lib/publish.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lib/publish.js b/test/lib/publish.js
index 627cb71f8..e5e412e39 100644
--- a/test/lib/publish.js
+++ b/test/lib/publish.js
@@ -2,10 +2,12 @@ const { test, cleanSnapshot } = require('tap')
const requireInject = require('require-inject')
test('should publish with libnpmpublish', (t) => {
+ const publishConfig = { registry: 'https://some.registry' }
const testDir = t.testdir({
'package.json': JSON.stringify({
name: 'my-cool-pkg',
- version: '1.0.0'
+ version: '1.0.0',
+ publishConfig
}, null, 2)
})
@@ -32,6 +34,7 @@ test('should publish with libnpmpublish', (t) => {
t.ok(arg, 'gets path')
t.ok(manifest, 'gets manifest')
t.ok(opts, 'gets opts object')
+ t.same(opts.publishConfig, publishConfig, 'publishConfig is passed through')
t.ok(true, 'libnpmpublish is called')
}
},