From f97c4df2a28abf06a77e98b1ab16345300b212e7 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Thu, 7 Nov 2024 17:48:30 +0100 Subject: [PATCH] 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 --- test/plugins/auth/ldap.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/plugins/auth/ldap.ts b/test/plugins/auth/ldap.ts index 8f26ba81..74a606df 100644 --- a/test/plugins/auth/ldap.ts +++ b/test/plugins/auth/ldap.ts @@ -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) {