fix: coverage

pull/28/head
Erick Zanardo 4 years ago
parent 7adca67e6d
commit 5f63abac7a

@ -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,

Loading…
Cancel
Save