publish (#343)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user