diff options
Diffstat (limited to 'deps/npm/test/tap/shrinkwrap-version-match.js')
-rw-r--r-- | deps/npm/test/tap/shrinkwrap-version-match.js | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/deps/npm/test/tap/shrinkwrap-version-match.js b/deps/npm/test/tap/shrinkwrap-version-match.js index bdcff2e4b6..57906528f7 100644 --- a/deps/npm/test/tap/shrinkwrap-version-match.js +++ b/deps/npm/test/tap/shrinkwrap-version-match.js @@ -7,10 +7,6 @@ var fs = require('fs') var path = require('path') var common = require('../common-tap.js') -// NOTE: This test will only remain relavent until npm@5 when -// npm-shrinkwrap.json will override EVERYTHING in you package.json. -// If you're working on npm@5 and this broke, just remove the test. - var testdir = path.resolve(__dirname, path.basename(__filename, '.js')) var modAdir = path.resolve(testdir, 'modA') var modB1dir = path.resolve(testdir, 'modB@1') @@ -27,16 +23,17 @@ var fixture = new Tacks(Dir({ } }), 'npm-shrinkwrap.json': File({ + requires: true, + lockfileVersion: 1, dependencies: { modA: { - version: '1.0.0', - from: 'modA', - resolved: 'file://' + modAdir + version: 'file://' + modAdir, + requires: { + modB: 'file://' + modB1dir + } }, modB: { - version: '1.0.0', - from: 'modB@1', - resolved: 'file://' + modB1dir + version: 'file://' + modB1dir } } }), |