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>2017-05-30 20:29:03 +0300
committerRebecca Turner <me@re-becca.org>2017-08-23 02:17:29 +0300
commit3dcd4b81911f45f03c0b0f7646e39379d1de267f (patch)
treecc5f87f5b26155ead7b1376ed8cd37c1308ba781
parente3f7c849c4f8f5621d184d796b15f74fbb8e0f75 (diff)
test: non-array bundledDependencies are handled without warnings
Credit: @isaacs Reviewed-By: @iarna PR-URL: https://github.com/npm/npm/pull/16804
-rw-r--r--test/tap/bundled-dependencies-nonarray.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tap/bundled-dependencies-nonarray.js b/test/tap/bundled-dependencies-nonarray.js
index 8f8eeb358..924e1b27b 100644
--- a/test/tap/bundled-dependencies-nonarray.js
+++ b/test/tap/bundled-dependencies-nonarray.js
@@ -34,7 +34,7 @@ test('setup', function (t) {
t.end()
})
-test('errors on non-array bundleddependencies', function (t) {
+test('handles non-array bundleddependencies', function (t) {
return Bluebird.try(() => {
return common.npm(['pack', 'a-bundled-dep/'], {cwd: dir, stdio: [0, 1, 2]})
}).spread((code) => {
@@ -44,8 +44,8 @@ test('errors on non-array bundleddependencies', function (t) {
t.is(code, 0, 'prepared pkg-with-bundled')
return common.npm(['pack', 'pkg-with-bundled/'], {cwd: dir, stdio: [0, 1, 'pipe']})
}).spread((code, _, stderr) => {
- t.notEqual(code, 0, 'exited with a error code')
- t.like(stderr, /be an array/, 'nice error output')
+ t.equal(code, 0, 'exited with a error code')
+ t.equal(stderr, '')
})
})