Possibly fix one reason tests fail

This commit is contained in:
Max Leiter 2022-05-31 18:50:47 -07:00
parent ba3c616bb8
commit 73014369c4
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA

View file

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