diff options
author | Rebecca Turner <me@re-becca.org> | 2018-04-20 18:26:37 -0700 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2018-05-24 23:24:45 -0700 |
commit | 468ab4519e1b92473acefb22801497a1af6aebae (patch) | |
tree | bdac1d062cd4b094bde3a21147bab5d82c792ece /deps/npm/test/tap/00-verify-ls-ok.js | |
parent | ac8226115e2192a7a46ba07789fa5136f74223e1 (diff) | |
download | android-node-v8-468ab4519e1b92473acefb22801497a1af6aebae.tar.gz android-node-v8-468ab4519e1b92473acefb22801497a1af6aebae.tar.bz2 android-node-v8-468ab4519e1b92473acefb22801497a1af6aebae.zip |
deps: upgrade npm to 6.1.0
PR-URL: https://github.com/nodejs/node/pull/20190
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'deps/npm/test/tap/00-verify-ls-ok.js')
-rw-r--r-- | deps/npm/test/tap/00-verify-ls-ok.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/deps/npm/test/tap/00-verify-ls-ok.js b/deps/npm/test/tap/00-verify-ls-ok.js index 2d20e500b7..edff251d76 100644 --- a/deps/npm/test/tap/00-verify-ls-ok.js +++ b/deps/npm/test/tap/00-verify-ls-ok.js @@ -9,10 +9,19 @@ test('npm ls in npm', function (t) { var files = fs.readdirSync(cwd) t.notEqual(files.length, 0, 'ensure there are files in the directory we are to ls') - var opt = { cwd: cwd, stdio: [ 'ignore', 'ignore', 2 ] } - common.npm(['ls'], opt, function (err, code) { + var opt = { cwd: cwd, stdio: [ 'ignore', 'pipe', 2 ] } + common.npm(['ls', '--json'], opt, function (err, code, stdout) { t.ifError(err, 'error should not exist') t.equal(code, 0, 'npm ls exited with code') + const tree = JSON.parse(stdout).dependencies + // We need to have a toplevel `node-gyp` available, but we also need to + // make sure npm-lifecycle's version is updated in concert. + // See https://github.com/npm/npm/issues/20163 + t.deepEqual( + tree['npm-lifecycle'].dependencies['node-gyp'].version, + tree['node-gyp'].version, + 'npm-lifecycle and npm using same version of node-gyp' + ) t.end() }) }) |