Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
andannn committed Oct 14, 2023
1 parent 25a419c commit 948e083
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ void main() {
});

test('test_data_time', () async {
airingScheduleBloc.add(OnRequestScheduleData(0));
await Future.delayed(const Duration(seconds: 4));
expect(airingScheduleBloc.state.schedulePageMap.keys,
equals([SchedulePageKey(dayFromNow: -6, dateTime: DateTime.now())]));
equals([SchedulePageKey(dayFromNow: 0, dateTime: DateTime.now())]));

expect(
airingScheduleBloc.state.schedulePageMap[
SchedulePageKey(dayFromNow: -6, dateTime: DateTime.now())]
SchedulePageKey(dayFromNow: 0, dateTime: DateTime.now())]
is SchedulePageReady,
equals(true));
});
Expand Down

0 comments on commit 948e083

Please sign in to comment.