diff --git a/test/game/bloc/game_bloc_test.dart b/test/game/bloc/game_bloc_test.dart index 2d03e023..319237f4 100644 --- a/test/game/bloc/game_bloc_test.dart +++ b/test/game/bloc/game_bloc_test.dart @@ -116,6 +116,33 @@ void main() { ); }); + group( + 'BonusActivated', + () { + blocTest( + 'adds bonus to history', + build: GameBloc.new, + act: (bloc) => bloc + ..add(const BonusActivated(GameBonus.word)) + ..add(const BonusActivated(GameBonus.dashNest)), + expect: () => const [ + GameState( + score: 0, + balls: 3, + activatedDashNests: {}, + bonusHistory: [GameBonus.word], + ), + GameState( + score: 0, + balls: 3, + activatedDashNests: {}, + bonusHistory: [GameBonus.word, GameBonus.dashNest], + ), + ], + ); + }, + ); + group('SparkyTurboChargeActivated', () { blocTest( 'adds game bonus',