blob: 67e15d3e66704c1b02a3256f1620a3f5c9b149e1 [file] [log] [blame]
"use strict";
// throw an error if any EventEmitter adds too many listeners
require('throw-max-listeners-error');
var testsDir = process.env.TESTS_DIR || './tmp';
var exec = require('child_process').exec;
function cleanup() {
// Remove test databases
exec('rm -r ' + testsDir);
}
exec('mkdir -p ' + testsDir, function () {
process.on('SIGINT', cleanup);
process.on('exit', cleanup);
});
global.testUtils = require('./utils.js');
global.should = require('chai').should();