2017-05-20 23:15:34 +00:00
|
|
|
|
|
|
|
import sinon = require("sinon");
|
|
|
|
|
|
|
|
export interface LdapClientMock {
|
2017-06-14 22:22:16 +00:00
|
|
|
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 {
|
2017-06-14 22:22:16 +00:00
|
|
|
checkPassword: sinon.stub(),
|
|
|
|
retrieveEmails: sinon.stub(),
|
|
|
|
retrieveGroups: sinon.stub(),
|
|
|
|
search: sinon.stub(),
|
|
|
|
updatePassword: sinon.stub()
|
2017-05-20 23:15:34 +00:00
|
|
|
};
|
|
|
|
}
|