Skip to content

Commit

Permalink
Fikset weekplan_bloc_test.dart TODO 253, fjernet done(); da den kom f…
Browse files Browse the repository at this point in the history
…orkert :)
  • Loading branch information
SadAndBroken committed Dec 7, 2023
1 parent 17c503e commit 35436b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/blocs/weekplan_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<ActivityModel> 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();
Expand Down

0 comments on commit 35436b5

Please sign in to comment.