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>
pull/416/head
Rui Miguel Alonso 3 years ago committed by GitHub
parent 27c488354c
commit 3f721f0bcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -70,21 +70,14 @@ void main() {
group('onReset', () {
blocTest<SpaceshipRampCubit, SpaceshipRampState>(
'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<SpaceshipRampState>()
..having((state) => state.hits, 'hits', 0)
..having(
(state) => state.lightState,
'lightState',
ArrowLightState.inactive,
),
expect: () => [SpaceshipRampState.initial(),
],
);
});

Loading…
Cancel
Save