summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/ls-depth-cli.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/tap/ls-depth-cli.js')
-rw-r--r--deps/npm/test/tap/ls-depth-cli.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/npm/test/tap/ls-depth-cli.js b/deps/npm/test/tap/ls-depth-cli.js
index 7fd4a467d6..6bb2f3cd12 100644
--- a/deps/npm/test/tap/ls-depth-cli.js
+++ b/deps/npm/test/tap/ls-depth-cli.js
@@ -10,7 +10,7 @@ var test = require('tap').test
var common = require('../common-tap')
-var pkg = path.resolve(__dirname, 'ls-depth-cli')
+var pkg = common.pkg
var EXEC_OPTS = {
cwd: pkg,
@@ -117,7 +117,7 @@ test('npm ls --depth=0 --json', function (t) {
'dependencies': {
'test-package-with-one-dep': {
'version': '0.0.0',
- 'resolved': 'http://localhost:1337/test-package-with-one-dep/-/test-package-with-one-dep-0.0.0.tgz'
+ 'resolved': 'http://localhost:' + common.port + '/test-package-with-one-dep/-/test-package-with-one-dep-0.0.0.tgz'
}
}
})
@@ -141,11 +141,11 @@ test('npm ls --depth=Infinity --json', function (t) {
'dependencies': {
'test-package-with-one-dep': {
'version': '0.0.0',
- 'resolved': 'http://localhost:1337/test-package-with-one-dep/-/test-package-with-one-dep-0.0.0.tgz',
+ 'resolved': 'http://localhost:' + common.port + '/test-package-with-one-dep/-/test-package-with-one-dep-0.0.0.tgz',
'dependencies': {
'test-package': {
'version': '0.0.0',
- 'resolved': 'http://localhost:1337/test-package/-/test-package-0.0.0.tgz'
+ 'resolved': 'http://localhost:' + common.port + '/test-package/-/test-package-0.0.0.tgz'
}
}
}