From da9c67fe1316923b0a8b6c9b147d4ba51d827e72 Mon Sep 17 00:00:00 2001 From: Erick Zanardo Date: Fri, 6 May 2022 16:24:57 -0300 Subject: [PATCH] lint --- lib/game/behaviors/bonus_noise_behavior.dart | 2 +- test/game/behaviors/bonus_noise_behavior_test.dart | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/game/behaviors/bonus_noise_behavior.dart b/lib/game/behaviors/bonus_noise_behavior.dart index 061982f5..9d67e964 100644 --- a/lib/game/behaviors/bonus_noise_behavior.dart +++ b/lib/game/behaviors/bonus_noise_behavior.dart @@ -17,7 +17,7 @@ class BonusNoiseBehavior extends Component { final bonus = state.bonusHistory.last; final audioPlayer = readProvider(); - switch(bonus) { + switch (bonus) { case GameBonus.googleWord: audioPlayer.play(PinballAudio.google); break; diff --git a/test/game/behaviors/bonus_noise_behavior_test.dart b/test/game/behaviors/bonus_noise_behavior_test.dart index 163f344e..5ec37bce 100644 --- a/test/game/behaviors/bonus_noise_behavior_test.dart +++ b/test/game/behaviors/bonus_noise_behavior_test.dart @@ -51,8 +51,7 @@ void main() { setUp(() { player = _MockPinballPlayer(); - when(() => player.play(any())) - .thenAnswer((_) { }); + when(() => player.play(any())).thenAnswer((_) {}); bloc = _MockGameBloc(); });