diff --git a/test/screens/edit_weekplan_screen_test.dart b/test/screens/edit_weekplan_screen_test.dart index 831de9261..712f96c99 100644 --- a/test/screens/edit_weekplan_screen_test.dart +++ b/test/screens/edit_weekplan_screen_test.dart @@ -327,8 +327,7 @@ void main() { testWidgets('Click on thumbnail redirects to pictogram search screen', (WidgetTester tester) async { - when(api.pictogram.getAll(page: 1, pageSize: pageSize, query: '') - as Function()) + when(()=>api.pictogram.getAll(page: 1, pageSize: pageSize, query: '')) .thenAnswer((_) => rx_dart.BehaviorSubject>.seeded( [mockPictogram]));