diff --git a/test/helpers/fakes.dart b/test/helpers/fakes.dart deleted file mode 100644 index 706733a1..00000000 --- a/test/helpers/fakes.dart +++ /dev/null @@ -1,7 +0,0 @@ -import 'package:flame_forge2d/flame_forge2d.dart'; -import 'package:mocktail/mocktail.dart'; -import 'package:pinball/game/game.dart'; - -class FakeContact extends Fake implements Contact {} - -class FakeGameEvent extends Fake implements GameEvent {} diff --git a/test/helpers/forge2d.dart b/test/helpers/forge2d.dart deleted file mode 100644 index f000d404..00000000 --- a/test/helpers/forge2d.dart +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:flame_forge2d/flame_forge2d.dart'; - -void beginContact(Forge2DGame game, BodyComponent bodyA, BodyComponent bodyB) { - assert( - bodyA.body.fixtures.isNotEmpty && bodyB.body.fixtures.isNotEmpty, - 'Bodies require fixtures to contact each other.', - ); - - final fixtureA = bodyA.body.fixtures.first; - final fixtureB = bodyB.body.fixtures.first; - final contact = Contact.init(fixtureA, 0, fixtureB, 0); - game.world.contactManager.contactListener?.beginContact(contact); -} diff --git a/test/helpers/helpers.dart b/test/helpers/helpers.dart index aeda80bf..96c43582 100644 --- a/test/helpers/helpers.dart +++ b/test/helpers/helpers.dart @@ -1,6 +1,4 @@ export 'builders.dart'; -export 'fakes.dart'; -export 'forge2d.dart'; export 'key_testers.dart'; export 'mock_flame_images.dart'; export 'pump_app.dart';