|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
// ignore_for_file: prefer_const_constructors
|
|
|
|
|
|
|
|
|
|
import 'package:bloc_test/bloc_test.dart';
|
|
|
|
|
import 'package:flame/game.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
@ -20,7 +22,7 @@ void main() {
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
await tester.pumpApp(
|
|
|
|
|
const PinballGamePage(theme: theme),
|
|
|
|
|
PinballGamePage(theme: theme),
|
|
|
|
|
gameBloc: gameBloc,
|
|
|
|
|
);
|
|
|
|
|
expect(find.byType(PinballGameView), findsOneWidget);
|
|
|
|
@ -64,9 +66,10 @@ void main() {
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
await tester.pumpApp(
|
|
|
|
|
const PinballGameView(theme: theme),
|
|
|
|
|
PinballGameView(theme: theme),
|
|
|
|
|
gameBloc: gameBloc,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
expect(
|
|
|
|
|
find.byWidgetPredicate((w) => w is GameWidget<PinballGame>),
|
|
|
|
|
findsOneWidget,
|
|
|
|
|