mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-17 05:36:36 +02:00
Possibly fix one reason tests fail
This commit is contained in:
parent
ba3c616bb8
commit
73014369c4
|
@ -110,7 +110,7 @@ function testLdapAuth() {
|
|||
expect(error).to.equal(
|
||||
"LDAP bind failed: InsufficientAccessRightsError: InsufficientAccessRightsError\n"
|
||||
);
|
||||
errorLogStub.restore();
|
||||
sinon.restore();
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
@ -124,7 +124,7 @@ function testLdapAuth() {
|
|||
ldapAuth.auth(manager, client as any, wrongUser, correctPassword, function (valid) {
|
||||
expect(valid).to.equal(false);
|
||||
expect(warning).to.equal("LDAP Search did not find anything for: eve (0)\n");
|
||||
warnLogStub.restore();
|
||||
sinon.restore();
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
@ -149,7 +149,7 @@ describe("LDAP authentication plugin", function () {
|
|||
// no-op
|
||||
});
|
||||
|
||||
infoLogStub.restore();
|
||||
sinon.restore();
|
||||
});
|
||||
|
||||
beforeEach(function () {
|
||||
|
|
Loading…
Reference in a new issue