mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 13:07:02 +03:00
lint & fix tests
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user