From 7979bbda9cfa23f4966ee98c9aaaeaacb3b7de60 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Wed, 30 Oct 2024 20:01:14 +0100 Subject: [PATCH] fixed film picket tests --- .../shared/readings_container/film_picker_test.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/screens/metering/components/shared/readings_container/film_picker_test.dart b/test/screens/metering/components/shared/readings_container/film_picker_test.dart index 30a2989..a5bf3ee 100644 --- a/test/screens/metering/components/shared/readings_container/film_picker_test.dart +++ b/test/screens/metering/components/shared/readings_container/film_picker_test.dart @@ -20,6 +20,9 @@ void main() { when(() => mockFilmsStorageService.getPredefinedFilms()).thenAnswer( (_) => Future.value(Map.fromEntries(_films.map((e) => MapEntry(e.id, (film: e, isUsed: true))))), ); + when(() => mockFilmsStorageService.getCustomFilms()).thenAnswer( + (_) => Future.value({}), + ); }); Future pumpApplication(WidgetTester tester) async { @@ -51,7 +54,7 @@ void main() { group('Film push/pull label', () { testWidgets( - 'Film.other()', + 'FilmStub()', (tester) async { when(() => mockFilmsStorageService.selectedFilmId).thenReturn(const FilmStub().id); await pumpApplication(tester);