added db upgrade tests

This commit is contained in:
Joe Dowd
2020-08-31 02:52:12 +01:00
parent 82d59e159f
commit 88e6c6f93c
4 changed files with 25 additions and 1 deletions

View File

@@ -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) => {