aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/shrinkwrap-lifecycle.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/tap/shrinkwrap-lifecycle.js')
-rw-r--r--deps/npm/test/tap/shrinkwrap-lifecycle.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/deps/npm/test/tap/shrinkwrap-lifecycle.js b/deps/npm/test/tap/shrinkwrap-lifecycle.js
index 0e84259667..8c0f36e3bb 100644
--- a/deps/npm/test/tap/shrinkwrap-lifecycle.js
+++ b/deps/npm/test/tap/shrinkwrap-lifecycle.js
@@ -22,22 +22,21 @@ test('npm shrinkwrap execution order', function (t) {
postshrinkwrap: 'echo this happens third'
}
}), 'utf8')
- common.npm(['shrinkwrap'], [], function (err, code, stdout) {
+ common.npm(['shrinkwrap', '--loglevel=error'], [], function (err, code, stdout, stderr) {
if (err) throw err
+ t.comment(stdout)
+ t.comment(stderr)
var indexOfFirst = stdout.indexOf('echo this happens first')
var indexOfSecond = stdout.indexOf('echo this happens second')
- var indexOfThird = stdout.indexOf('wrote npm-shrinkwrap.json')
- var indexOfFourth = stdout.indexOf('echo this happens third')
+ var indexOfThird = stdout.indexOf('echo this happens third')
t.ok(indexOfFirst >= 0)
t.ok(indexOfSecond >= 0)
t.ok(indexOfThird >= 0)
- t.ok(indexOfFourth >= 0)
t.ok(indexOfFirst < indexOfSecond)
t.ok(indexOfSecond < indexOfThird)
- t.ok(indexOfThird < indexOfFourth)
t.end()
})