authelia/test/server/mocks/LdapClient.ts

21 lines
501 B
TypeScript
Raw Normal View History

2017-05-20 23:15:34 +00:00
import sinon = require("sinon");
export interface LdapClientMock {
checkPassword: sinon.SinonStub;
retrieveEmails: sinon.SinonStub;
retrieveGroups: sinon.SinonStub;
search: sinon.SinonStub;
updatePassword: sinon.SinonStub;
2017-05-20 23:15:34 +00:00
}
export function LdapClientMock(): LdapClientMock {
return {
checkPassword: sinon.stub(),
retrieveEmails: sinon.stub(),
retrieveGroups: sinon.stub(),
search: sinon.stub(),
updatePassword: sinon.stub()
2017-05-20 23:15:34 +00:00
};
}