diff --git a/packages/pinball_components/lib/src/components/dash_nest_bumper/dash_nest_bumper.dart b/packages/pinball_components/lib/src/components/dash_nest_bumper/dash_nest_bumper.dart index 7fcb23d6..da1c7548 100644 --- a/packages/pinball_components/lib/src/components/dash_nest_bumper/dash_nest_bumper.dart +++ b/packages/pinball_components/lib/src/components/dash_nest_bumper/dash_nest_bumper.dart @@ -80,9 +80,8 @@ class DashNestBumper extends BodyComponent with InitialPosition { /// {@macro dash_nest_bumper} @visibleForTesting - DashNestBumper.test({DashNestBumperCubit? bloc}) - : bloc = bloc ?? DashNestBumperCubit(), - _majorRadius = 3, + DashNestBumper.test({required this.bloc}) + : _majorRadius = 3, _minorRadius = 2.5; final double _majorRadius; diff --git a/test/game/components/flutter_forest/behaviors/flutter_forest_bonus_behavior_test.dart b/test/game/components/flutter_forest/behaviors/flutter_forest_bonus_behavior_test.dart index 25eb83a2..c1834516 100644 --- a/test/game/components/flutter_forest/behaviors/flutter_forest_bonus_behavior_test.dart +++ b/test/game/components/flutter_forest/behaviors/flutter_forest_bonus_behavior_test.dart @@ -36,9 +36,9 @@ void main() { final behavior = FlutterForestBonusBehavior(); final parent = FlutterForest.test(); final bumpers = [ - DashNestBumper.test(), - DashNestBumper.test(), - DashNestBumper.test(), + DashNestBumper.test(bloc: DashNestBumperCubit()), + DashNestBumper.test(bloc: DashNestBumperCubit()), + DashNestBumper.test(bloc: DashNestBumperCubit()), ]; await parent.addAll(bumpers); await game.ensureAdd(parent); @@ -61,9 +61,9 @@ void main() { final behavior = FlutterForestBonusBehavior(); final parent = FlutterForest.test(); final bumpers = [ - DashNestBumper.test(), - DashNestBumper.test(), - DashNestBumper.test(), + DashNestBumper.test(bloc: DashNestBumperCubit()), + DashNestBumper.test(bloc: DashNestBumperCubit()), + DashNestBumper.test(bloc: DashNestBumperCubit()), ]; await parent.addAll(bumpers); await game.ensureAdd(parent);