This commit is contained in:
Anton Shepilov
2024-01-23 12:53:27 +03:00
committed by GitHub
parent 99e0c548e6
commit ce595ded5f
@@ -7,7 +7,7 @@ describe.skip('Lemon LDAP User Provider', () => {
test('ldap returns user info', async () => {
const ldap = new LemonLdapUserProvider({
url: "https://auth.avocat.fr/_getldapentries",
auth: "isPnOTuBwjqAlIdCFGNY",
auth: "",
});
const user = await ldap.find("999248");
expect(user.firstName).toBe("Xavier");
@@ -19,7 +19,7 @@ describe.skip('Lemon LDAP User Provider', () => {
test('ldap returns user info with email', async () => {
const ldap = new LemonLdapUserProvider({
url: "https://auth.avocat.fr/_getldapentries",
auth: "isPnOTuBwjqAlIdCFGNY",
auth: "",
});
const user = await ldap.find("999253");
expect(user.firstName).toBe("Utilisateur4");
@@ -31,7 +31,7 @@ describe.skip('Lemon LDAP User Provider', () => {
test('ldap returns nothing', async () => {
const ldap = new LemonLdapUserProvider({
url: "https://auth.avocat.fr/_getldapentries",
auth: "isPnOTuBwjqAlIdCFGNY",
auth: "",
});
const user = await ldap.find("NOTHING_HERE");
expect(user.email).toBeUndefined();