From 4bba48d7d9b6c7d80d7675326e8e5f6c812fc434 Mon Sep 17 00:00:00 2001 From: alestiago Date: Mon, 9 May 2022 23:45:15 +0100 Subject: [PATCH] test: used ensureAdd --- .../ramp_ball_ascending_contact_behavior_test.dart | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/pinball_components/test/src/components/spaceship_ramp/behavior/ramp_ball_ascending_contact_behavior_test.dart b/packages/pinball_components/test/src/components/spaceship_ramp/behavior/ramp_ball_ascending_contact_behavior_test.dart index 2a0d86c4..9051059c 100644 --- a/packages/pinball_components/test/src/components/spaceship_ramp/behavior/ramp_ball_ascending_contact_behavior_test.dart +++ b/packages/pinball_components/test/src/components/spaceship_ramp/behavior/ramp_ball_ascending_contact_behavior_test.dart @@ -99,12 +99,10 @@ void main() { spaceshipRamp, bloc: bloc, ); - await opening.add(behavior); + await opening.ensureAdd(behavior); behavior.beginContact(ball, _MockContact()); - await game.ready(); - verify(bloc.onAscendingBallEntered).called(1); }, ); @@ -131,12 +129,10 @@ void main() { spaceshipRamp, bloc: bloc, ); - await opening.add(behavior); + await opening.ensureAdd(behavior); behavior.beginContact(ball, _MockContact()); - await game.ready(); - verifyNever(bloc.onAscendingBallEntered); }, );