diff options
author | isaacs <i@izs.me> | 2017-05-30 20:29:03 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-08-23 02:17:29 +0300 |
commit | 3dcd4b81911f45f03c0b0f7646e39379d1de267f (patch) | |
tree | cc5f87f5b26155ead7b1376ed8cd37c1308ba781 | |
parent | e3f7c849c4f8f5621d184d796b15f74fbb8e0f75 (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.js | 6 |
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, '') }) }) |