mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
17 lines
526 B
TypeScript
17 lines
526 B
TypeScript
|
import BluebirdPromise = require("bluebird");
|
||
|
import Sinon = require("sinon");
|
||
|
import { ICollection } from "../../../../../src/server/lib/storage/ICollection";
|
||
|
import { ICollectionFactory } from "../../../../../src/server/lib/storage/ICollectionFactory";
|
||
|
|
||
|
export class CollectionFactoryStub implements ICollectionFactory {
|
||
|
buildStub: Sinon.SinonStub;
|
||
|
|
||
|
constructor() {
|
||
|
this.buildStub = Sinon.stub();
|
||
|
}
|
||
|
|
||
|
build(collectionName: string): ICollection {
|
||
|
return this.buildStub(collectionName);
|
||
|
}
|
||
|
}
|