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:
Diffstat (limited to 'test/lib/init.js')
-rw-r--r--test/lib/init.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/lib/init.js b/test/lib/init.js
index 20699d879..1cefb1fc9 100644
--- a/test/lib/init.js
+++ b/test/lib/init.js
@@ -513,26 +513,3 @@ t.test('workspaces', t => {
t.end()
})
-t.test('npm init workspces with root', t => {
- t.teardown(() => {
- npm._mockOutputs.length = 0
- })
- npm.localPrefix = t.testdir({})
- npm.flatOptions.includeWorkspaceRoot = true
-
- // init-package-json prints directly to console.log
- // this avoids poluting test output with those logs
- console.log = noop
-
- process.chdir(npm.localPrefix)
- init.execWorkspaces([], ['packages/a'], err => {
- if (err)
- throw err
-
- const pkg = require(resolve(npm.localPrefix, 'package.json'))
- t.equal(pkg.version, '1.0.0')
- t.equal(pkg.license, 'ISC')
- t.matchSnapshot(npm._mockOutputs, 'should print helper info')
- t.end()
- })
-})