From 631c1e9860642899b442b70e1efb2f6fba483367 Mon Sep 17 00:00:00 2001 From: Alejandro Santiago Date: Thu, 31 Mar 2022 11:12:14 +0100 Subject: [PATCH] fix: made mocked instance late (#114) --- 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(),