authelia/server/test/storage/nedb/NedbCollectionFactory.test.ts

16 lines
469 B
TypeScript
Raw Normal View History

import Sinon = require("sinon");
import Assert = require("assert");
import { NedbCollectionFactory } from "../../../src/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);
});
});