refactor: renamed test names

pull/381/head
alestiago 3 years ago
parent aeaa198a8a
commit e47c2d206b

@ -61,7 +61,7 @@ void main() {
void _contactedBumper(DashBumper bumper) => bumper.bloc.onBallContacted(); void _contactedBumper(DashBumper bumper) => bumper.bloc.onBallContacted();
flameTester.testGameWidget( flameTester.testGameWidget(
'adds GameBonus.DashBumper to the game ' 'adds GameBonus.dashNest to the game '
'when bumpers are activated three times', 'when bumpers are activated three times',
setUp: (game, tester) async { setUp: (game, tester) async {
await game.onLoad(); await game.onLoad();

@ -63,7 +63,7 @@ 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.DashBumper', 'with a new GameBonus.dashNest',
() { () {
final previous = GameState.initial(); final previous = GameState.initial();
final state = previous.copyWith( final state = previous.copyWith(
@ -79,7 +79,7 @@ void main() {
test( test(
'is false when the bonusHistory has changed ' 'is false when the bonusHistory has changed '
'with a bonus different than GameBonus.DashBumper', () { 'with a bonus different than GameBonus.dashNest', () {
final previous = final previous =
GameState.initial().copyWith(bonusHistory: [GameBonus.dashNest]); GameState.initial().copyWith(bonusHistory: [GameBonus.dashNest]);
final state = previous.copyWith( final state = previous.copyWith(

Loading…
Cancel
Save