mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
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);
|
||
|
}
|
||
|
}
|