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:
Reto Brunner 2024-11-07 17:48:30 +01:00
parent 23fff58fc3
commit f97c4df2a2

View file

@ -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) {