diff --git a/lib/units/auth/mock.js b/lib/units/auth/mock.js index 00597442..21ff14b8 100644 --- a/lib/units/auth/mock.js +++ b/lib/units/auth/mock.js @@ -45,7 +45,8 @@ module.exports = function(options) { if (user.name === options.mock.basicAuth.username && user.pass === options.mock.basicAuth.password) { return next() - } else { + } + else { return unauthorized(res) } }