fix eslint for tests

This commit is contained in:
Michael C
2021-07-12 02:43:46 -04:00
parent c0b1d201ad
commit 8b3ffe5d0d
30 changed files with 3453 additions and 3475 deletions

View File

@@ -1,10 +1,10 @@
import {db, privateDB} from '../../src/databases/databases';
import {db, privateDB} from "../../src/databases/databases";
describe('dbUpgrade', () => {
it('Should update the database version when starting the application', async () => {
const dbVersion = (await db.prepare('get', 'SELECT key, value FROM config where key = ?', ['version'])).value;
const privateVersion = (await privateDB.prepare('get', 'SELECT key, value FROM config where key = ?', ['version'])).value;
describe("dbUpgrade", () => {
it("Should update the database version when starting the application", async () => {
const dbVersion = (await db.prepare("get", "SELECT key, value FROM config where key = ?", ["version"])).value;
const privateVersion = (await privateDB.prepare("get", "SELECT key, value FROM config where key = ?", ["version"])).value;
if (dbVersion >= 1 && privateVersion >= 1) return;
else return 'Versions are not at least 1. db is ' + dbVersion + ', private is ' + privateVersion;
else return `Versions are not at least 1. db is ${dbVersion}, private is ${privateVersion}`;
});
});