test: fixed typo name

pull/357/head
alestiago 3 years ago
parent fd52056acc
commit d1523a91fc

@ -50,7 +50,7 @@ void main() {
}); });
flameTester.test( flameTester.test(
'can be laoded', 'can be loaded',
(game) async { (game) async {
final parent = Multiballs.test(); final parent = Multiballs.test();
final behavior = MultiballsBehavior(); final behavior = MultiballsBehavior();
@ -62,18 +62,20 @@ void main() {
group('listenWhen', () { group('listenWhen', () {
test( test(
'is true when the bonusHistory has changed ' 'is true when the bonusHistory has changed '
'with a new GameBonus.dashNest', () { 'with a new GameBonus.dashNest',
final previous = GameState.initial(); () {
final state = previous.copyWith( final previous = GameState.initial();
bonusHistory: [GameBonus.dashNest], final state = previous.copyWith(
); bonusHistory: [GameBonus.dashNest],
);
expect( expect(
MultiballsBehavior().listenWhen(previous, state), MultiballsBehavior().listenWhen(previous, state),
isTrue, isTrue,
); );
}); },
);
test( test(
'is false when the bonusHistory has changed ' 'is false when the bonusHistory has changed '

Loading…
Cancel
Save