diff --git a/test/game/components/bonus_word_test.dart b/test/game/components/bonus_word_test.dart index 42cf19c4..724cefe9 100644 --- a/test/game/components/bonus_word_test.dart +++ b/test/game/components/bonus_word_test.dart @@ -194,10 +194,11 @@ void main() { }); group('bonus letter activation', () { - final gameBloc = MockGameBloc(); + late GameBloc gameBloc; final tester = flameBlocTester(gameBloc: () => gameBloc); setUp(() { + gameBloc = MockGameBloc(); whenListen( gameBloc, const Stream.empty(),