From 3f721f0bcc96d378c156008500c69fe5dbfe2d4f Mon Sep 17 00:00:00 2001 From: Rui Miguel Alonso Date: Mon, 9 May 2022 16:45:15 +0200 Subject: [PATCH] Update packages/pinball_components/test/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit_test.dart Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com> --- .../cubit/spaceship_ramp_cubit_test.dart | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/pinball_components/test/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit_test.dart b/packages/pinball_components/test/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit_test.dart index c9af44cf..dc22ce2e 100644 --- a/packages/pinball_components/test/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit_test.dart +++ b/packages/pinball_components/test/src/components/spaceship_ramp/cubit/spaceship_ramp_cubit_test.dart @@ -70,21 +70,14 @@ void main() { group('onReset', () { blocTest( - 'emits state reset to initial values', + 'emits initial state', build: SpaceshipRampCubit.new, seed: () => SpaceshipRampState( hits: 100, lightState: ArrowLightState.active3, ), act: (bloc) => bloc.onReset(), - expect: () => [ - isA() - ..having((state) => state.hits, 'hits', 0) - ..having( - (state) => state.lightState, - 'lightState', - ArrowLightState.inactive, - ), + expect: () => [SpaceshipRampState.initial(), ], ); });