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);