|
|
@ -26,6 +26,8 @@ void main() {
|
|
|
|
TestWidgetsFlutterBinding.ensureInitialized();
|
|
|
|
TestWidgetsFlutterBinding.ensureInitialized();
|
|
|
|
|
|
|
|
|
|
|
|
setUp(() async {
|
|
|
|
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 image = await decodeImageFromList(Uint8List.fromList(fakeImage));
|
|
|
|
final images = MockImages();
|
|
|
|
final images = MockImages();
|
|
|
|
when(() => images.fromCache(any())).thenReturn(image);
|
|
|
|
when(() => images.fromCache(any())).thenReturn(image);
|
|
|
|