test: triggered next event loop

pull/416/head
alestiago 3 years ago
parent 3b52bde321
commit c0215d566b

@ -96,7 +96,7 @@ void main() {
); );
streamController.add(state.copyWith(rounds: state.rounds - 1)); streamController.add(state.copyWith(rounds: state.rounds - 1));
await game.ready(); await Future<void>.delayed(Duration.zero);
verify(bloc.onReset).called(1); verify(bloc.onReset).called(1);
}, },
@ -126,7 +126,7 @@ void main() {
streamController streamController
.add(state.copyWith(roundScore: state.roundScore + 100)); .add(state.copyWith(roundScore: state.roundScore + 100));
await game.ready(); await Future<void>.delayed(Duration.zero);
verifyNever(bloc.onReset); verifyNever(bloc.onReset);
}, },

Loading…
Cancel
Save