Skip to content

Commit

Permalink
fixed test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
TimMo-dev committed Oct 31, 2023
1 parent a7f4182 commit 4f898ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/screens/edit_weekplan_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<List<PictogramModel>>.seeded(
<PictogramModel>[mockPictogram]));
Expand Down

0 comments on commit 4f898ad

Please sign in to comment.