Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import chai from 'chai';
import sinonTest from 'sinon-test';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import chaiEnzyme from 'chai-enzyme';
import { _init } from '../src/listener';
import { ops } from './mocks';
sinon.test = sinonTest.configureTest(sinon);
chai.should();
chai.use(sinonChai);
chai.use(chaiEnzyme());
_init(ops);
var path = require("path")
var should = require("should")
var sinon = require("sinon")
var sinonTest = require("sinon-test")
sinon.test = sinonTest.configureTest(sinon)
sinon.testCase = sinonTest.configureTestCase(sinon)
var api = require(__dirname + "/../../dadi/lib/api")
var Server = require(__dirname + "/../help").Server
var cache = require(__dirname + "/../../dadi/lib/cache")
var datasource = require(__dirname + "/../../dadi/lib/datasource")
var page = require(__dirname + "/../../dadi/lib/page")
var TestHelper = require(__dirname + "/../help")()
var config = require(path.resolve(path.join(__dirname, "/../../config")))
describe("Cache", function(done) {
beforeEach(function(done) {
TestHelper.resetConfig().then(() => {
done()
})
})