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:
authorNathan Fritz <fritzy@github.com>2022-03-02 18:39:33 +0300
committerGitHub <noreply@github.com>2022-03-02 18:39:33 +0300
commitdefe79ad6f2f4216bf5e0188256c77b49164eb94 (patch)
tree4ba91a167fe17e16c6789224ed24de32a224eb57 /test
parent2db3eff44d7bb86b956207cc63d279806fd14ed0 (diff)
fix: publish of tarballs includes README in packument (#4480)
Diffstat (limited to 'test')
-rw-r--r--test/lib/commands/publish.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/commands/publish.js b/test/lib/commands/publish.js
index 0a7f961bf..0acce8b00 100644
--- a/test/lib/commands/publish.js
+++ b/test/lib/commands/publish.js
@@ -290,6 +290,7 @@ t.test('can publish a tarball', async t => {
name: 'my-cool-tarball',
version: '1.2.3',
}),
+ 'README.md': 'This is my readme',
},
})
const tar = require('tar')
@@ -311,6 +312,9 @@ t.test('can publish a tarball', async t => {
{
name: 'my-cool-tarball',
version: '1.2.3',
+ readme: 'This is my readme',
+ description: 'This is my readme',
+ readmeFilename: 'README.md',
},
'sent manifest to lib pub'
)