diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/peer-deps-toplevel.js | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/test/tap/peer-deps-toplevel.js b/test/tap/peer-deps-toplevel.js index 3a8d3c722..61c3ecb0d 100644 --- a/test/tap/peer-deps-toplevel.js +++ b/test/tap/peer-deps-toplevel.js @@ -24,24 +24,11 @@ var expected = { version: '0.0.0', from: 'npm-test-peer-deps@*', resolved: common.registry + '/npm-test-peer-deps/-/npm-test-peer-deps-0.0.0.tgz', - problems: [ - 'peer dep missing: request@0.9.x, required by npm-test-peer-deps@0.0.0' - ], dependencies: { underscore: { version: '1.3.1', from: 'underscore@1.3.1', resolved: common.registry + '/underscore/-/underscore-1.3.1.tgz' - }, - request: { - required: { - _id: 'request@0.9.x', - name: 'request', - version: '0.9.x', - peerMissing: true, - dependencies: {} - }, - peerMissing: true } } }, @@ -51,9 +38,23 @@ var expected = { _id: 'mkdirp@*', name: 'mkdirp', version: '*', - peerMissing: true, + peerMissing: [ + {requiredBy: 'npm-test-peer-deps-toplevel@0.0.0', requires: 'mkdirp@*'} + ], dependencies: {} } + }, + request: { + peerMissing: true, + required: { + _id: 'request@0.9.x', + dependencies: {}, + name: 'request', + peerMissing: [ + {requiredBy: 'npm-test-peer-deps@0.0.0', requires: 'request@0.9.x'} + ], + version: '0.9.x' + } } } } |