From 3c40b7b138b04a986659573ae1f944aee6909744 Mon Sep 17 00:00:00 2001 From: alestiago Date: Fri, 15 Apr 2022 09:29:00 +0100 Subject: [PATCH] refactor: renamed bloc testers --- test/game/components/controlled_flipper_test.dart | 6 +++--- test/game/components/controlled_plunger_test.dart | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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);