diff options
Diffstat (limited to 'deps/npm/test/tap/shrinkwrap-local-dependency.js')
-rw-r--r-- | deps/npm/test/tap/shrinkwrap-local-dependency.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/npm/test/tap/shrinkwrap-local-dependency.js b/deps/npm/test/tap/shrinkwrap-local-dependency.js index 992343ccf5..58974ad724 100644 --- a/deps/npm/test/tap/shrinkwrap-local-dependency.js +++ b/deps/npm/test/tap/shrinkwrap-local-dependency.js @@ -4,6 +4,7 @@ var fs = require('fs') var rimraf = require('rimraf') var common = require('../common-tap.js') var Tacks = require('tacks') +var unixFormatPath = require('../../lib/utils/unix-format-path.js') var File = Tacks.File var Dir = Tacks.Dir @@ -16,10 +17,10 @@ var shrinkwrap = { version: '1.0.0', dependencies: { mod2: { - version: 'file:' + path.join('mods', 'mod2'), + version: 'file:' + unixFormatPath(path.join('mods', 'mod2')), dependencies: { mod1: { - version: 'file:' + path.join('mods', 'mod1'), + version: 'file:' + unixFormatPath(path.join('mods', 'mod1')), bundled: true } } @@ -85,7 +86,7 @@ test('shrinkwrap uses resolved with file: on local deps', function (t) { t.comment(stderr.trim()) t.equal(code, 0, 'npm exited normally') var data = fs.readFileSync(path.join(testdir, 'npm-shrinkwrap.json'), { encoding: 'utf8' }) - t.deepEqual( + t.like( JSON.parse(data).dependencies, shrinkwrap.dependencies, 'shrinkwrap looks correct' |