refactor: used ensureAddAll instead of ensureAdd

Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
pull/15/head
Alejandro Santiago 4 years ago committed by GitHub
parent 19e9791ece
commit 5e4c83bcb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,8 +74,7 @@ void main() {
final flipper = Flipper.left(position: Vector2.zero()); final flipper = Flipper.left(position: Vector2.zero());
final ball = Ball(position: Vector2.zero()); final ball = Ball(position: Vector2.zero());
await game.ensureAdd(flipper); await game.ensureAddAll([flipper, ball]);
await game.ensureAdd(ball);
expect( expect(
flipper.body.getMassData().mass, flipper.body.getMassData().mass,

Loading…
Cancel
Save