authelia/test/unit/server/mocks/LdapClient.ts

21 lines
501 B
TypeScript
Raw Normal View History

2017-05-21 06:15:34 +07: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-21 06:15:34 +07:00
}
export function LdapClientMock(): LdapClientMock {
return {
checkPassword: sinon.stub(),
retrieveEmails: sinon.stub(),
retrieveGroups: sinon.stub(),
search: sinon.stub(),
updatePassword: sinon.stub()
2017-05-21 06:15:34 +07:00
};
}