From 40e145e521593d11a0114461f2cc3238538550d9 Mon Sep 17 00:00:00 2001 From: Allison Ryan Date: Wed, 9 Mar 2022 15:11:46 -0600 Subject: [PATCH] fix: ball position test --- test/game/components/ball_test.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/game/components/ball_test.dart b/test/game/components/ball_test.dart index d7def330..e91484f9 100644 --- a/test/game/components/ball_test.dart +++ b/test/game/components/ball_test.dart @@ -34,7 +34,11 @@ void main() { await game.ensureAdd(ball); game.contains(ball); - expect(ball.body.position, position); + final expectedPosition = Vector2( + position.x, + position.y + Ball.ballSize.y, + ); + expect(ball.body.position, equals(expectedPosition)); }, );