Finally fix the tests

We now dependency inject the database for the whole exercise provider,
this makes our lives a bit easier
This commit is contained in:
Roland Geider
2024-01-09 15:00:36 +01:00
parent 89229a20cc
commit 24e031d595
12 changed files with 738 additions and 633 deletions

View File

@@ -20,6 +20,9 @@ class Ingredients extends Table {
class IngredientDatabase extends _$IngredientDatabase {
IngredientDatabase() : super(_openConnection());
// Named constructor for creating in-memory database
IngredientDatabase.inMemory(super.e);
@override
// TODO: implement schemaVersion
int get schemaVersion => 1;