From 0cdab965527dc4a71d25ea6b20ec25a2c2bb1844 Mon Sep 17 00:00:00 2001 From: 98spag Date: Fri, 16 Jun 2023 11:47:52 +0200 Subject: [PATCH] feat: fix tests --- test/statistics_test.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; });