From 35436b5ec693c54879e5c57b12c8bbf0693bac79 Mon Sep 17 00:00:00 2001 From: SadAndBroken Date: Thu, 7 Dec 2023 13:54:17 +0100 Subject: [PATCH] Fikset weekplan_bloc_test.dart TODO 253, fjernet done(); da den kom forkert :) --- test/blocs/weekplan_bloc_test.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/blocs/weekplan_bloc_test.dart b/test/blocs/weekplan_bloc_test.dart index 7a36458e1..48c8c7cff 100644 --- a/test/blocs/weekplan_bloc_test.dart +++ b/test/blocs/weekplan_bloc_test.dart @@ -271,16 +271,14 @@ void main() { weekplanBloc.setDaysToDisplay(1, 0); weekplanBloc.addWeekdayStream(); weekplanBloc.addMarkedActivity(activity); - //Marks the activities and creates a listener for updates on activityModel - //Checks that no marked activities are within the list weekplanBloc.markedActivities .skip(1) .listen((List markedActivitiesList) { expect(markedActivitiesList.length, 0); verify(() => api.week.updateDay(any(), any(), any(), any())); - - done(); }); + //Marks the activities and creates a listener for updates on activityModel + //Checks that no marked activities are within the list //Fires the listener and deletes all marked activities weekplanBloc.deleteMarkedActivities(); done();