diff --git a/test/game/components/jetpack_ramp_test.dart b/test/game/components/jetpack_ramp_test.dart index 619fb8cd..6d769812 100644 --- a/test/game/components/jetpack_ramp_test.dart +++ b/test/game/components/jetpack_ramp_test.dart @@ -24,7 +24,9 @@ void main() { ); await game.ready(); await game.ensureAdd(jetpackRamp); - game.contains(jetpackRamp); + + final pathways = game.children.whereType().toList(); + expect(pathways.length, 1); }, ); @@ -37,7 +39,8 @@ void main() { await game.ready(); await game.ensureAdd(jetpackRamp); - game.contains(jetpackRamp); + final rampAreas = game.children.whereType().toList(); + expect(rampAreas.length, 2); }, ); diff --git a/test/game/components/sparky_ramp_test.dart b/test/game/components/sparky_ramp_test.dart index f0671643..e82190a4 100644 --- a/test/game/components/sparky_ramp_test.dart +++ b/test/game/components/sparky_ramp_test.dart @@ -24,7 +24,9 @@ void main() { ); await game.ready(); await game.ensureAdd(sparkyRamp); - game.contains(sparkyRamp); + + final pathways = game.children.whereType().toList(); + expect(pathways.length, 1); }, ); @@ -37,7 +39,8 @@ void main() { await game.ready(); await game.ensureAdd(sparkyRamp); - game.contains(sparkyRamp); + final rampAreas = game.children.whereType().toList(); + expect(rampAreas.length, 2); }, );