fixed film picket tests

This commit is contained in:
Vadim 2024-10-30 20:01:14 +01:00
parent f5f237add7
commit 7979bbda9c

View file

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