"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let assert = require('assert');
const mockObjects_1 = require("../mockObjects");
const redisMock_1 = require("../mocks/redisMock");
const cassandraMock_1 = require("../mocks/cassandraMock");
let redisConfig = {
    statusCheckInterval: 1,
    keys: {
        rediskey_connections: "test:"
    }
};
describe('test mock objects', function () {
    it('test redis change', function (done) {
        class SpecialCase extends redisMock_1.default {
            quit(callback) {
                done();
                return super.quit();
            }
        }
        let redis = mockObjects_1.default.makeRedis(redisConfig, SpecialCase);
        redis.close();
    });
    it('test cassandra change', function (done) {
        class SpecialCase extends cassandraMock_1.default {
            shutdown(callback) {
                done();
            }
        }
        let cassa = mockObjects_1.default.makeCassandra({ autoConnect: true }, SpecialCase);
        cassa.close();
    });
});
//# sourceMappingURL=test-mock-objects.js.map