diff --git a/test/game/components/controlled_flipper_test.dart b/test/game/components/controlled_flipper_test.dart index 9e58cc9d..3c0fc1b0 100644 --- a/test/game/components/controlled_flipper_test.dart +++ b/test/game/components/controlled_flipper_test.dart @@ -13,7 +13,7 @@ void main() { TestWidgetsFlutterBinding.ensureInitialized(); final flameTester = FlameTester(EmptyPinballTestGame.new); - final gameOverBlocTester = FlameBlocTester( + final flameBlocTester = FlameBlocTester( gameBuilder: EmptyPinballTestGame.new, blocBuilder: () { final bloc = MockGameBloc(); @@ -65,7 +65,7 @@ void main() { }); testRawKeyDownEvents(leftKeys, (event) { - gameOverBlocTester.testGameWidget( + flameBlocTester.testGameWidget( 'does nothing when is game over', setUp: (game, tester) async { await game.ensureAdd(flipper); @@ -150,7 +150,7 @@ void main() { }); testRawKeyDownEvents(rightKeys, (event) { - gameOverBlocTester.testGameWidget( + flameBlocTester.testGameWidget( 'does nothing when is game over', setUp: (game, tester) async { await game.ensureAdd(flipper); diff --git a/test/game/components/controlled_plunger_test.dart b/test/game/components/controlled_plunger_test.dart index 40f93256..a377487e 100644 --- a/test/game/components/controlled_plunger_test.dart +++ b/test/game/components/controlled_plunger_test.dart @@ -14,7 +14,7 @@ void main() { TestWidgetsFlutterBinding.ensureInitialized(); final flameTester = FlameTester(EmptyPinballTestGame.new); - final gameOverBlocTester = FlameBlocTester( + final flameBlocTester = FlameBlocTester( gameBuilder: EmptyPinballTestGame.new, blocBuilder: () { final bloc = MockGameBloc(); @@ -91,7 +91,7 @@ void main() { }); testRawKeyDownEvents(downKeys, (event) { - gameOverBlocTester.testGameWidget( + flameBlocTester.testGameWidget( 'does nothing when is game over', setUp: (game, tester) async { await game.ensureAdd(plunger);