authelia/test/unit/server/storage/nedb/NedbCollectionFactory.test.ts
2017-07-31 00:29:00 +02:00

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);
});
});