Update test/game/pinball_game_test.dart

Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
pull/40/head
Rui Miguel Alonso 4 years ago committed by GitHub
parent 61c929a9de
commit 402465f5f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -91,8 +91,12 @@ void main() {
(game) async { (game) async {
await game.ready(); await game.ready();
final rampAreas = game.children.whereType<JetpackRamp>().toList(); expect(
expect(rampAreas.length, 1); () => game.children.singleWhere(
(component) => component is JetpackRamp,
),
returnsNormally,
);
}, },
); );

Loading…
Cancel
Save