From 433b23b3748ae9427db890474179992626b61129 Mon Sep 17 00:00:00 2001 From: alestiago Date: Wed, 16 Mar 2022 17:28:45 +0000 Subject: [PATCH] feat: included test --- test/game/components/initial_position_test.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/game/components/initial_position_test.dart b/test/game/components/initial_position_test.dart index 1e2c55d3..4bb7f9a9 100644 --- a/test/game/components/initial_position_test.dart +++ b/test/game/components/initial_position_test.dart @@ -32,8 +32,10 @@ void main() { 'when BodyDef is not positioned with initialPosition', (game) async { // TODO(alestiago): Make this pass. - final component = TestBodyComponent(); - await game.ready(); + final component = TestBodyComponent() + ..initialPosition = Vector2.all( + 10, + ); await expectLater( () => game.ensureAdd(component), throwsAssertionError,