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

pull/416/head
RuiAlonso 3 years ago
commit 27c488354c

@ -47,7 +47,7 @@ void main() {
}); });
test( test(
'fullArrowLit returns if lightState is last one', 'fullArrowLit returns true when lightState is last one',
() { () {
expect( expect(
SpaceshipRampState.initial().fullArrowLit, SpaceshipRampState.initial().fullArrowLit,

@ -67,7 +67,7 @@ void main() {
flameTester.test( flameTester.test(
'adds onProgressed ' 'adds onProgressed '
'when hits and multiplier is less than 6', 'when hits and multiplier are less than 6',
(game) async { (game) async {
final bloc = _MockSpaceshipRampCubit(); final bloc = _MockSpaceshipRampCubit();
final state = SpaceshipRampState.initial(); final state = SpaceshipRampState.initial();
@ -104,7 +104,7 @@ void main() {
flameTester.test( flameTester.test(
'adds onProgressed ' 'adds onProgressed '
'when hits and multiplier is 6 but arrow is not full lit', 'when hits and multiplier are 6 but arrow is not fully lit',
(game) async { (game) async {
final bloc = _MockSpaceshipRampCubit(); final bloc = _MockSpaceshipRampCubit();
final state = SpaceshipRampState.initial(); final state = SpaceshipRampState.initial();
@ -141,7 +141,7 @@ void main() {
flameTester.test( flameTester.test(
"doesn't add onProgressed " "doesn't add onProgressed "
'when hits and multiplier is 6 and arrow is full lit', 'when hits and multiplier are 6 and arrow is fully lit',
(game) async { (game) async {
final bloc = _MockSpaceshipRampCubit(); final bloc = _MockSpaceshipRampCubit();
final state = SpaceshipRampState.initial(); final state = SpaceshipRampState.initial();
@ -182,8 +182,8 @@ void main() {
); );
flameTester.test( flameTester.test(
'adds again onProgressed to dimmed all ' 'adds onProgressed to dim arrow '
'when arrow is full lit after hit and multiplier is less than 6', 'when arrow is fully lit after hit and multiplier is less than 6',
(game) async { (game) async {
final bloc = _MockSpaceshipRampCubit(); final bloc = _MockSpaceshipRampCubit();
final state = SpaceshipRampState.initial(); final state = SpaceshipRampState.initial();
@ -224,8 +224,8 @@ void main() {
); );
flameTester.test( flameTester.test(
"doesn't add again onProgressed to dimmed all " "doesn't add onProgressed to dim arrow "
'when arrow is not full lit after hit', 'when arrow is not fully lit after hit',
(game) async { (game) async {
final bloc = _MockSpaceshipRampCubit(); final bloc = _MockSpaceshipRampCubit();
final state = SpaceshipRampState.initial(); final state = SpaceshipRampState.initial();
@ -266,7 +266,7 @@ void main() {
); );
flameTester.test( flameTester.test(
"doesn't add again onProgressed to dimmed all " "doesn't add onProgressed to dim arrow "
'when multiplier is 6 after hit', 'when multiplier is 6 after hit',
(game) async { (game) async {
final bloc = _MockSpaceshipRampCubit(); final bloc = _MockSpaceshipRampCubit();

@ -66,7 +66,7 @@ void main() {
final flameTester = FlameTester(_TestGame.new); final flameTester = FlameTester(_TestGame.new);
flameTester.test( flameTester.test(
'when round lost call onReset', 'calls onReset when round lost',
(game) async { (game) async {
final bloc = _MockSpaceshipRampCubit(); final bloc = _MockSpaceshipRampCubit();
final state = GameState.initial(); final state = GameState.initial();
@ -95,7 +95,7 @@ void main() {
); );
flameTester.test( flameTester.test(
"when round doesn't change never call onReset", "doesn't call onReset when round stays the same",
(game) async { (game) async {
final bloc = _MockSpaceshipRampCubit(); final bloc = _MockSpaceshipRampCubit();
final state = GameState.initial(); final state = GameState.initial();

@ -69,7 +69,7 @@ void main() {
final flameTester = FlameTester(_TestGame.new); final flameTester = FlameTester(_TestGame.new);
flameTester.test( flameTester.test(
'when hits adds a ScoringBehavior', 'adds a ScoringBehavior when hit',
(game) async { (game) async {
final bloc = _MockSpaceshipRampCubit(); final bloc = _MockSpaceshipRampCubit();
final state = SpaceshipRampState.initial(); final state = SpaceshipRampState.initial();

Loading…
Cancel
Save