did more of the knex -> sqlite migration.

This commit is contained in:
Jordan Hewitt
2025-03-10 10:32:27 -07:00
parent 3616592896
commit 8f67d0421b
5 changed files with 67 additions and 59 deletions

View File

@ -1,18 +1,18 @@
import { Settings } from '@/app/lib/settings';
import { getDb } from '@/app/lib/db';
import { Knex } from 'knex';
import { getDb, migrateDb } from '@/app/lib/db';
import { SQLiteDatabase } from 'expo-sqlite';
describe('Settings', () => {
let settings : Settings;
let db : Knex;
let settings: Settings;
let db: SQLiteDatabase;
beforeEach(async () => {
db = await getDb("development");
settings = new Settings(db)
settings = new Settings(db);
});
afterEach(async () => {
await db.migrate.down();
await migrateDb("development");
});
it('should set the host language in the database', async () => {