diff options
author | Rebecca Turner <me@re-becca.org> | 2017-11-17 00:50:15 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-11-17 00:50:22 +0300 |
commit | 2e2ac0358056608bf8fd58c07c07b53e44746683 (patch) | |
tree | 45c6d731194ed01f6ed7a4fb0ebe968390427f58 /test | |
parent | 2b5d1fd2ca37e4e2fde806cffee17019a9f754c2 (diff) |
test: bearer-token-check standard fixes
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/bearer-token-check.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tap/bearer-token-check.js b/test/tap/bearer-token-check.js index 8c07868ad..e3af793e6 100644 --- a/test/tap/bearer-token-check.js +++ b/test/tap/bearer-token-check.js @@ -19,7 +19,7 @@ var tarballPath = '/scoped-underscore/-/scoped-underscore-1.3.1.tgz' var tarballURL = 'http://127.0.0.1:' + common.port + tarballPath var tarball = resolve(__dirname, '../fixtures/scoped-underscore-1.3.1.tgz') -var EXEC_OPTS = { cwd: pkg, stdio: [0,'pipe', 2] } +var EXEC_OPTS = { cwd: pkg, stdio: [0, 'pipe', 2] } var auth = 'Bearer 0xabad1dea' var server = http.createServer() @@ -38,7 +38,6 @@ server.on('request', (req, res) => { } }) - test('setup', function (t) { server.listen(common.port, () => { setup() @@ -57,6 +56,7 @@ test('authed npm install with tarball not on registry', function (t) { ], EXEC_OPTS, function (err, code, stdout, stderr) { + if (err) throw err t.equal(code, 0, 'npm install exited OK') t.comment(stdout.trim()) t.comment(stderr.trim()) |