mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user