diff options
author | Dylan Greene <dylang@gmail.com> | 2014-07-26 01:54:01 +0400 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2014-09-05 05:45:49 +0400 |
commit | c8eb928207b3545c9647bdb9f095624f5cb60290 (patch) | |
tree | 1ac11a7d065c3a5a428907de593db5da5c87a35d /test | |
parent | 9fe98c4df54b752807151fc45b6bfd6076acffec (diff) |
when saving, using file://
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/install-save-local.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/tap/install-save-local.js b/test/tap/install-save-local.js index 56ab0f44a..e02679ff8 100644 --- a/test/tap/install-save-local.js +++ b/test/tap/install-save-local.js @@ -25,13 +25,10 @@ test('"npm install --save ../local/path" should install local package and save t var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8')) t.deepEqual(pkgJson.dependencies, { - 'package-local-dependency': '../package-local-dependency' + 'package-local-dependency': 'file:///../package-local-dependency' }) npm.config.set('save', undefined) - //var devDependencyPackageJson = path.resolve(pkgDir, 'node_modules/package-local-dev-dependency/package.json') - //t.ok(JSON.parse(fs.readFileSync(devDependencyPackageJson, 'utf8'))) - t.end() }) }) @@ -49,7 +46,7 @@ test('"npm install --save-dev ../local/path" should install local package and sa var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8')) t.deepEqual(pkgJson.devDependencies, { - 'package-local-dev-dependency': '../package-local-dev-dependency' + 'package-local-dev-dependency': 'file:///../package-local-dev-dependency' }) npm.config.set('save', undefined) |