diff options
author | Rebecca Turner <me@re-becca.org> | 2017-10-19 04:33:00 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2017-10-19 04:33:00 +0300 |
commit | a93e0a51d3dafc31c809ca28cd7dfa71b2836f86 (patch) | |
tree | 04ece652cf32f66da222b0e3217cc79ea1709e03 /test | |
parent | 2f9c5dd0046a53ece3482e92a412413f5aed6955 (diff) |
update: Correctly save transitive dependencies (#18846)
Direct deps get `package.json` and `package-lock.json`. Transitive deps get
`package-lock.json`.
PR-URL: https://github.com/npm/npm/pull/18846
Credit: @iarna
Reviewed-By: @zkat
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/update-examples.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tap/update-examples.js b/test/tap/update-examples.js index 548447895..532a67f38 100644 --- a/test/tap/update-examples.js +++ b/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', { |