lint & fix tests

This commit is contained in:
Michael C
2021-07-05 03:14:05 -04:00
parent d29c9613b9
commit d5204e9813
7 changed files with 14 additions and 12 deletions

View File

@@ -18,15 +18,15 @@ async function init() {
}));
// delete old test database
if (fs.existsSync(config.db)) fs.unlinkSync(config.db)
if (fs.existsSync(config.db)) fs.unlinkSync(config.db);
if (fs.existsSync(config.privateDB)) fs.unlinkSync(config.privateDB);
await initDb();
const dbMode = config.mysql ? 'mysql'
: config.postgres ? 'postgres'
: 'sqlite'
Logger.info('Database Mode: ' + dbMode)
: 'sqlite';
Logger.info('Database Mode: ' + dbMode);
// Instantiate a Mocha instance.
const mocha = new Mocha();