From f3fa0d06f44ddae3e026eeeb44dbb7e7f25453dc Mon Sep 17 00:00:00 2001 From: alestiago Date: Thu, 31 Mar 2022 10:28:18 +0100 Subject: [PATCH] chore: used testGameWidget --- test/game/components/controlled_ball_test.dart | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/game/components/controlled_ball_test.dart b/test/game/components/controlled_ball_test.dart index c763fb8b..9cf1dd7e 100644 --- a/test/game/components/controlled_ball_test.dart +++ b/test/game/components/controlled_ball_test.dart @@ -58,9 +58,9 @@ void main() { gameBloc: () => gameBloc, ); - tester.widgetTest( + tester.testGameWidget( 'removes ball', - (game, tester) async { + verify: (game, tester) async { await game.add(ball); final controller = LaunchedBallController(ball); await ball.add(controller); @@ -73,9 +73,9 @@ void main() { }, ); - tester.widgetTest( + tester.testGameWidget( 'adds BallLost to GameBloc', - (game, tester) async { + verify: (game, tester) async { final controller = LaunchedBallController(ball); await ball.add(controller); await game.add(ball); @@ -87,9 +87,9 @@ void main() { }, ); - tester.widgetTest( + tester.testGameWidget( 'adds a new ball if the game is not over', - (game, tester) async { + verify: (game, tester) async { final controller = LaunchedBallController(ball); await ball.add(controller); await game.add(ball); @@ -104,9 +104,9 @@ void main() { }, ); - tester.widgetTest( + tester.testGameWidget( 'no ball is added on game over', - (game, tester) async { + verify: (game, tester) async { whenListen( gameBloc, const Stream.empty(),