Skip to content

Commit

Permalink
fix(tests): update override-bundled
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat authored and iarna committed May 26, 2017
1 parent 1013658 commit 21d58d2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/tap/override-bundled.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ test('setup', function (t) {
})

test('bundled', function (t) {
common.npm(['install', '--loglevel=warn'], {cwd: testdir}, function (err, code, stdout, stderr) {
common.npm(['install', '--loglevel=verbose'], {cwd: testdir}, function (err, code, stdout, stderr) {
if (err) throw err
t.plan(8)
t.plan(9)
t.is(code, 0, 'npm itself completed ok')

// This tests that after the install we have a freshly installed version
Expand All @@ -133,8 +133,9 @@ test('bundled', function (t) {
// _things_ to it. Things like chmod in particular, which in turn results
// in the dreaded ENOENT errors.
t.like(stderr, new RegExp('npm WARN ' + testname), "didn't stomp on other warnings")
t.like(stderr, /npm WARN.*bundle-update/, 'included update warning about bundled dep')
t.like(stderr, /npm WARN.*bundle-deep-update/, 'included update warning about deeply bundled dep')
t.like(stderr, /npm verb.*bundle-update/, 'included update warning about bundled dep')
t.like(stderr, /npm verb.*bundle-deep-update/, 'included update warning about deeply bundled dep')
t.like(stderr, /npm WARN top-test@1\.0\.0 had bundled packages that do not match/, 'single grouped warning')
fs.stat(bundleupdateNEWpostinstall, function (missing) {
t.ok(!missing, 'package.json overrode bundle')
})
Expand Down

0 comments on commit 21d58d2

Please sign in to comment.