summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/logout-scoped.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/tap/logout-scoped.js')
-rw-r--r--deps/npm/test/tap/logout-scoped.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/deps/npm/test/tap/logout-scoped.js b/deps/npm/test/tap/logout-scoped.js
index db99320478..114cc09da7 100644
--- a/deps/npm/test/tap/logout-scoped.js
+++ b/deps/npm/test/tap/logout-scoped.js
@@ -8,15 +8,14 @@ var test = require('tap').test
var common = require('../common-tap.js')
-var pkg = path.resolve(__dirname, 'logout')
+var pkg = common.pkg
var outfile = path.join(pkg, '_npmrc')
var opts = { cwd: pkg }
-var contents = function () { /*
-foo=boo
-@bar:registry=http://localhost:1337
-//localhost:1337/:_authToken=glarb
-*/ }.toString().split('\n').slice(1, -1).join('\n')
+var contents = `foo=boo
+@bar:registry=http://localhost:${common.port}
+//localhost:${common.port}/:_authToken=glarb
+`
function mocks (server) {
server.delete('/-/user/token/glarb')