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

Loading…
Cancel
Save