diff --git a/lib/game/pinball_game.dart b/lib/game/pinball_game.dart index c36a2d2c..b5162053 100644 --- a/lib/game/pinball_game.dart +++ b/lib/game/pinball_game.dart @@ -66,9 +66,13 @@ class PinballGame extends Forge2DGame Future _addGameBoundaries() async { await add(BottomWall()); createBoundaries(this).forEach(add); - unawaited(addFromBlueprint(DinoWalls( - position: Vector2(-2.4, 0), - ))); + unawaited( + addFromBlueprint( + DinoWalls( + position: Vector2(-2.4, 0), + ), + ), + ); } Future _addPlunger() async { diff --git a/packages/pinball_components/test/src/components/dino_walls_test.dart b/packages/pinball_components/test/src/components/dino_walls_test.dart deleted file mode 100644 index 35f7706f..00000000 --- a/packages/pinball_components/test/src/components/dino_walls_test.dart +++ /dev/null @@ -1,48 +0,0 @@ -import 'package:flame_forge2d/flame_forge2d.dart'; -import 'package:flame_test/flame_test.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:pinball_components/pinball_components.dart'; - -import '../../helpers/helpers.dart'; - -void main() { - group('DinoTopWall', () { - final tester = FlameTester(TestGame.new); - - tester.testGameWidget( - 'renders correctly', - setUp: (game, tester) async { - await game.add(DinoTopWall()..initialPosition = Vector2(0, -50)); - await game.ready(); - await tester.pump(); - }, - verify: (game, tester) async { - // FIXME(ruimiguel): Failing pipeline. - //await expectLater( - // find.byGame(), - // matchesGoldenFile('golden/dinoTopWall.png'), - //); - }, - ); - }); - - group('DinoBottomWall', () { - final tester = FlameTester(TestGame.new); - - tester.testGameWidget( - 'renders correctly', - setUp: (game, tester) async { - await game.add(DinoBottomWall()..initialPosition = Vector2(0, -12)); - await game.ready(); - await tester.pump(); - }, - verify: (game, tester) async { - // FIXME(ruimiguel): Failing pipeline. - //await expectLater( - // find.byGame(), - // matchesGoldenFile('golden/dinoBottomWall.png'), - //); - }, - ); - }); -}