Skip to content

Commit

Permalink
Sorry, det gammel kode som kørte på flutter 3.3.8, og ikke Flutter 3.…
Browse files Browse the repository at this point in the history
…16.3... Nullables er blvet lavet for alt :/
  • Loading branch information
SadAndBroken committed Dec 7, 2023
1 parent 7094af8 commit 8200bcd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/screens/weekplan_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1263,15 +1263,15 @@ void main() {
i++;
}
mockActivities[2].state = ActivityState.Normal;
mockActivities[2].timer.paused = true;
mockActivities[2].timer.fullLength = 100;
mockWeek.days[i].activities.add(mockActivities[2]);
mockActivities[2].timer!.paused = true;
mockActivities[2].timer!.fullLength = 100;
mockWeek.days![i].activities!.add(mockActivities[2]);
authBloc.setMode(WeekplanMode.citizen);
final WeekplanScreen weekplanScreen = WeekplanScreen(mockWeek, user);
final WeekplanScreen weekplanScreen = WeekplanScreen(mockWeek, user, key: UniqueKey());
await tester.pumpWidget(MaterialApp(home: weekplanScreen));

await tester.pumpAndSettle();
await tester.tap(find.byKey(Key(mockWeek.days[i].day.index.toString() +
await tester.tap(find.byKey(Key(mockWeek.days![i].day!.index.toString() +
mockActivities[2].id.toString())));
await tester.pumpAndSettle();

Expand Down Expand Up @@ -1313,15 +1313,15 @@ void main() {
i++;
}
mockActivities[2].state = ActivityState.Normal;
mockActivities[2].timer.paused = true;
mockActivities[2].timer.fullLength = 100;
mockWeek.days[i].activities.add(mockActivities[2]);
mockActivities[2].timer!.paused = true;
mockActivities[2].timer!.fullLength = 100;
mockWeek.days![i].activities!.add(mockActivities[2]);
authBloc.setMode(WeekplanMode.citizen);
final WeekplanScreen weekplanScreen =
WeekplanScreen(mockWeek, user, key: UniqueKey());
await tester.pumpWidget(MaterialApp(home: weekplanScreen));
await tester.pumpAndSettle();
await tester.tap(find.byKey(Key(mockWeek.days[i].day.index.toString()
await tester.tap(find.byKey(Key(mockWeek.days![i].day!.index.toString()
+ mockActivities[2].id.toString())));
await tester.pumpAndSettle();

Expand Down

0 comments on commit 8200bcd

Please sign in to comment.