From 61375f047d245e632a589f3ef65a29c41f6ca6c3 Mon Sep 17 00:00:00 2001 From: arturplaczek Date: Wed, 27 Apr 2022 22:24:02 +0200 Subject: [PATCH] fix: add TODOs --- test/game/view/widgets/bonus_animation_test.dart | 2 ++ test/game/view/widgets/game_hud_test.dart | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/game/view/widgets/bonus_animation_test.dart b/test/game/view/widgets/bonus_animation_test.dart index c76a7ca1..11e249c7 100644 --- a/test/game/view/widgets/bonus_animation_test.dart +++ b/test/game/view/widgets/bonus_animation_test.dart @@ -26,6 +26,8 @@ void main() { TestWidgetsFlutterBinding.ensureInitialized(); setUp(() async { + // TODO(arturplaczek): need to find for a better solution for loading image + // or use original images from BonusAnimation.loadAssets() final image = await decodeImageFromList(Uint8List.fromList(fakeImage)); final images = MockImages(); when(() => images.fromCache(any())).thenReturn(image); diff --git a/test/game/view/widgets/game_hud_test.dart b/test/game/view/widgets/game_hud_test.dart index 70b54330..fe8bd092 100644 --- a/test/game/view/widgets/game_hud_test.dart +++ b/test/game/view/widgets/game_hud_test.dart @@ -35,6 +35,8 @@ void main() { setUp(() async { gameBloc = MockGameBloc(); + // TODO(arturplaczek): need to find for a better solution for loading + // image or use original images from BonusAnimation.loadAssets() final image = await decodeImageFromList(Uint8List.fromList(fakeImage)); final images = MockImages(); when(() => images.fromCache(any())).thenReturn(image);