mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 21:17:15 +03:00
added db upgrade tests
This commit is contained in:
@@ -22,7 +22,7 @@ describe('noSegmentRecords', () => {
|
||||
it('Should update the database version when starting the application', (done) => {
|
||||
let version = db.prepare('get', 'SELECT key, value FROM config where key = ?', ['version']).value;
|
||||
if (version > 1) done();
|
||||
else done('Version isn\'t greater that 1. Version is ' + version);
|
||||
else done('Version isn\'t greater than 1. Version is ' + version);
|
||||
});
|
||||
|
||||
it('Should be able to submit categorys not in video (http response)', (done) => {
|
||||
|
||||
Reference in New Issue
Block a user