aboutsummaryrefslogtreecommitdiff
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.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/npm/test/tap/logout-scoped.js b/deps/npm/test/tap/logout-scoped.js
index 1323a4d32e..db99320478 100644
--- a/deps/npm/test/tap/logout-scoped.js
+++ b/deps/npm/test/tap/logout-scoped.js
@@ -12,11 +12,11 @@ var pkg = path.resolve(__dirname, 'logout')
var outfile = path.join(pkg, '_npmrc')
var opts = { cwd: pkg }
-var contents = function () {/*
+var contents = function () { /*
foo=boo
@bar:registry=http://localhost:1337
//localhost:1337/:_authToken=glarb
-*/}.toString().split('\n').slice(1, -1).join('\n')
+*/ }.toString().split('\n').slice(1, -1).join('\n')
function mocks (server) {
server.delete('/-/user/token/glarb')
@@ -47,7 +47,7 @@ test('npm logout', function (t) {
t.notOk(code, 'exited OK')
var config = fs.readFileSync(outfile, 'utf8')
- t.equal(config, 'foo=boo\n', 'creds gone')
+ t.equal(config.trim(), 'foo=boo', 'creds gone')
s.close()
t.end()
}