Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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()
})
})