diff --git a/test/statistics_test.dart b/test/statistics_test.dart index 10190e3..02d9821 100644 --- a/test/statistics_test.dart +++ b/test/statistics_test.dart @@ -2,12 +2,15 @@ import 'package:ernaehrung/android/components/meal_page_text/days_component.dart import 'package:ernaehrung/android/config/format_helper.dart'; import 'package:ernaehrung/android/config/statistics.dart'; import 'package:ernaehrung/android/models/food.dart'; +import 'package:flutter_dotenv/flutter_dotenv.dart'; import 'package:flutter_test/flutter_test.dart'; - late StatisticsService statisticsService; +late StatisticsService statisticsService; Future main() async { + await dotenv.load(fileName: ".env"); + setUp(() async { statisticsService = StatisticsService.instance; });