mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
16 lines
444 B
TypeScript
16 lines
444 B
TypeScript
|
|
import { IClient } from "../../../../../src/server/lib/ldap/IClient";
|
|
import { IClientFactory } from "../../../../../src/server/lib/ldap/IClientFactory";
|
|
import Sinon = require("sinon");
|
|
|
|
export class ClientFactoryStub implements IClientFactory {
|
|
createStub: Sinon.SinonStub;
|
|
|
|
constructor() {
|
|
this.createStub = Sinon.stub();
|
|
}
|
|
|
|
create(userDN: string, password: string): IClient {
|
|
return this.createStub(userDN, password);
|
|
}
|
|
} |