From df122a5ad27ea75ba45c5921accdfbf8c31b2bb4 Mon Sep 17 00:00:00 2001 From: alestiago Date: Thu, 31 Mar 2022 11:08:34 +0100 Subject: [PATCH] fix: made mocked instance late --- test/game/components/bonus_word_test.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(),