feat(test): throw an error when authentication fails

This commit is contained in:
Julien Fontanet 2016-11-09 17:08:17 +01:00
parent 47991b7d1a
commit 9b5fac9e2b

View File

@ -182,6 +182,10 @@ class AuthLdap {
return this._authenticate({
username,
password
}).then(result => {
if (result === null) {
throw new Error('could not authenticate user')
}
})
}