mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 20:17:02 +03:00
Clear database before running tests
This commit is contained in:
5
test.js
5
test.js
@@ -2,6 +2,11 @@ var Mocha = require('mocha'),
|
||||
fs = require('fs'),
|
||||
path = require('path');
|
||||
|
||||
var config = require('./src/config.js');
|
||||
// delete old test database
|
||||
fs.unlinkSync(config.db);
|
||||
fs.unlinkSync(config.privateDB);
|
||||
|
||||
var createServer = require('./src/app.js');
|
||||
var createMockServer = require('./test/mocks.js');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user