mirror of
https://github.com/thelounge/thelounge
synced 2024-11-12 23:37:08 +00:00
ignore invalid warning in ldap test
it complains that the call `ldap.parseDN(dn).toString();` yields "[object Object]" but that's bogus... the typing is incorrect. ldap.DN stringifies properly
This commit is contained in:
parent
23fff58fc3
commit
f97c4df2a2
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ const primaryKey = "uid";
|
|||
const serverPort = 1389;
|
||||
|
||||
function normalizeDN(dn: string) {
|
||||
return String(ldap.parseDN(dn).toString());
|
||||
// warning is bogus in this case
|
||||
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
||||
return ldap.parseDN(dn).toString();
|
||||
}
|
||||
|
||||
function startLdapServer(callback) {
|
||||
|
|
Loading…
Reference in a new issue