|
|
@ -89,9 +89,10 @@ void main() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
group('resetting a ball', () {
|
|
|
|
group('resetting a ball', () {
|
|
|
|
final gameBloc = MockGameBloc();
|
|
|
|
late GameBloc gameBloc;
|
|
|
|
|
|
|
|
|
|
|
|
setUp(() {
|
|
|
|
setUp(() {
|
|
|
|
|
|
|
|
gameBloc = MockGameBloc();
|
|
|
|
whenListen(
|
|
|
|
whenListen(
|
|
|
|
gameBloc,
|
|
|
|
gameBloc,
|
|
|
|
const Stream<GameState>.empty(),
|
|
|
|
const Stream<GameState>.empty(),
|
|
|
@ -99,7 +100,7 @@ void main() {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
final tester = flameBlocTester(gameBloc: gameBloc);
|
|
|
|
final tester = flameBlocTester(gameBloc: () => gameBloc);
|
|
|
|
|
|
|
|
|
|
|
|
tester.widgetTest(
|
|
|
|
tester.widgetTest(
|
|
|
|
'adds BallLost to GameBloc',
|
|
|
|
'adds BallLost to GameBloc',
|
|
|
|