From 3f721f0bcc96d378c156008500c69fe5dbfe2d4f Mon Sep 17 00:00:00 2001 From: Rui Miguel Alonso Date: Mon, 9 May 2022 16:45:15 +0200 Subject: [PATCH 1/2] 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(), ], ); }); From 9d3afc6dfa40771a9b3dc2f7db0b4aa2a80e586a Mon Sep 17 00:00:00 2001 From: Rui Miguel Alonso Date: Mon, 9 May 2022 16:45:50 +0200 Subject: [PATCH 2/2] Update packages/pinball_components/test/src/components/spaceship_ramp/spaceship_ramp_test.dart Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com> --- .../src/components/spaceship_ramp/spaceship_ramp_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pinball_components/test/src/components/spaceship_ramp/spaceship_ramp_test.dart b/packages/pinball_components/test/src/components/spaceship_ramp/spaceship_ramp_test.dart index 4c0b0b35..e8afd6e2 100644 --- a/packages/pinball_components/test/src/components/spaceship_ramp/spaceship_ramp_test.dart +++ b/packages/pinball_components/test/src/components/spaceship_ramp/spaceship_ramp_test.dart @@ -62,8 +62,8 @@ void main() { }, ); - group('loads', () { - flameTester.test('adds a FlameBlocProvider', (game) async { + group('adds', () { + flameTester.test('a FlameBlocProvider', (game) async { final ramp = SpaceshipRamp(); await game.ensureAdd(ramp); expect(