From 89ea382a372bde56ceed8e51788b2e7f0395dff4 Mon Sep 17 00:00:00 2001 From: alestiago Date: Tue, 8 Mar 2022 12:32:54 +0000 Subject: [PATCH] feat: modified test to match new center --- test/game/components/flipper_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/game/components/flipper_test.dart b/test/game/components/flipper_test.dart index 0cee5113..70cbf75e 100644 --- a/test/game/components/flipper_test.dart +++ b/test/game/components/flipper_test.dart @@ -187,7 +187,7 @@ void main() { final flipperAnchor = FlipperAnchor(flipper: flipper); await game.ensureAdd(flipperAnchor); - expect(flipperAnchor.body.position.x, equals(0)); + expect(flipperAnchor.body.position.x, equals(-Flipper.width / 2)); }, ); @@ -204,7 +204,7 @@ void main() { final flipperAnchor = FlipperAnchor(flipper: flipper); await game.ensureAdd(flipperAnchor); - expect(flipperAnchor.body.position.x, equals(Flipper.width)); + expect(flipperAnchor.body.position.x, equals(Flipper.width / 2)); }, ); },