Merge branch 'fix/spaceship-ramp-logic' of github.com:VGVentures/pinball into fix/spaceship-ramp-logic

pull/416/head
RuiAlonso 3 years ago
commit 10128ee4cc

@ -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(),
],
);
});

@ -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(

Loading…
Cancel
Save