mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
23 lines
534 B
TypeScript
23 lines
534 B
TypeScript
|
|
||
|
import Redis = require("redis");
|
||
|
import Assert = require("assert");
|
||
|
|
||
|
const redisOptions = {
|
||
|
host: "redis",
|
||
|
port: 6379
|
||
|
};
|
||
|
|
||
|
describe("test redis is correctly used", function () {
|
||
|
let redisClient: Redis.RedisClient;
|
||
|
|
||
|
before(function () {
|
||
|
redisClient = Redis.createClient(redisOptions);
|
||
|
});
|
||
|
|
||
|
it("should have registered at least one session", function (done) {
|
||
|
redisClient.dbsize(function (err: Error, count: number) {
|
||
|
Assert.equal(1, count);
|
||
|
done();
|
||
|
});
|
||
|
});
|
||
|
});
|