16 lines
499 B
TypeScript
16 lines
499 B
TypeScript
import BluebirdPromise = require("bluebird");
|
|
import { IClient } from "../../../src/lib/ldap/IClient";
|
|
import { IEmailsRetriever } from "../../../src/lib/ldap/IEmailsRetriever";
|
|
import Sinon = require("sinon");
|
|
|
|
export class EmailsRetrieverStub implements IEmailsRetriever {
|
|
retrieveStub: Sinon.SinonStub;
|
|
|
|
constructor() {
|
|
this.retrieveStub = Sinon.stub();
|
|
}
|
|
|
|
retrieve(username: string, client?: IClient): BluebirdPromise<string[]> {
|
|
return this.retrieveStub(username, client);
|
|
}
|
|
} |