mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
16 lines
482 B
TypeScript
16 lines
482 B
TypeScript
|
import Sinon = require("sinon");
|
||
|
import Assert = require("assert");
|
||
|
|
||
|
import { NedbCollectionFactory } from "../../../../../src/server/lib/storage/nedb/NedbCollectionFactory";
|
||
|
|
||
|
describe("NedbCollectionFactory", function() {
|
||
|
it("should create a nedb collection", function() {
|
||
|
const nedbOptions = {
|
||
|
inMemoryOnly: true
|
||
|
};
|
||
|
const factory = new NedbCollectionFactory(nedbOptions);
|
||
|
|
||
|
const collection = factory.build("mycollection");
|
||
|
Assert(collection);
|
||
|
});
|
||
|
});
|