summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/update-examples.js
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-12-07 14:05:23 -0800
committerMyles Borins <mylesborins@google.com>2018-01-19 11:32:08 -0500
commitd3b1c971bcf0177b17c649c3aeca1a94cbc3fff5 (patch)
tree321928c015be00cdbe11715297d2d2fc45802263 /deps/npm/test/tap/update-examples.js
parentbfe41fe88e7421f441067a79fb7512cf5935a2bb (diff)
downloadnode-new-d3b1c971bcf0177b17c649c3aeca1a94cbc3fff5.tar.gz
deps: upgrade npm to 5.6.0
PR-URL: https://github.com/nodejs/node/pull/17777 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'deps/npm/test/tap/update-examples.js')
-rw-r--r--deps/npm/test/tap/update-examples.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/npm/test/tap/update-examples.js b/deps/npm/test/tap/update-examples.js
index 5484478955..532a67f386 100644
--- a/deps/npm/test/tap/update-examples.js
+++ b/deps/npm/test/tap/update-examples.js
@@ -125,7 +125,7 @@ function mockInstaller (where, dryrun, what) {
}
mockInstaller.prototype = {}
mockInstaller.prototype.run = function (cb) {
- cb()
+ return cb ? cb() : Promise.resolve()
}
var npm = requireInject.installGlobally('../../lib/npm.js', {