From 402465f5f02a79aa785f0d497403881f86a80c08 Mon Sep 17 00:00:00 2001 From: Rui Miguel Alonso Date: Mon, 14 Mar 2022 18:58:31 +0100 Subject: [PATCH] Update test/game/pinball_game_test.dart Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com> --- test/game/pinball_game_test.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/game/pinball_game_test.dart b/test/game/pinball_game_test.dart index af94a1f0..603858bf 100644 --- a/test/game/pinball_game_test.dart +++ b/test/game/pinball_game_test.dart @@ -91,8 +91,12 @@ void main() { (game) async { await game.ready(); - final rampAreas = game.children.whereType().toList(); - expect(rampAreas.length, 1); + expect( + () => game.children.singleWhere( + (component) => component is JetpackRamp, + ), + returnsNormally, + ); }, );