From 5e4c83bcb68c509f5a3396724d172f12174252aa Mon Sep 17 00:00:00 2001 From: Alejandro Santiago Date: Tue, 8 Mar 2022 16:21:07 +0000 Subject: [PATCH] refactor: used ensureAddAll instead of ensureAdd Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com> --- test/game/components/flipper_test.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/game/components/flipper_test.dart b/test/game/components/flipper_test.dart index 6bedece2..e2f5291e 100644 --- a/test/game/components/flipper_test.dart +++ b/test/game/components/flipper_test.dart @@ -74,8 +74,7 @@ void main() { final flipper = Flipper.left(position: Vector2.zero()); final ball = Ball(position: Vector2.zero()); - await game.ensureAdd(flipper); - await game.ensureAdd(ball); + await game.ensureAddAll([flipper, ball]); expect( flipper.body.getMassData().mass,