test: used ensureAdd

pull/391/head
alestiago 3 years ago
parent afb12d7538
commit a0a7c4047a

@ -36,7 +36,7 @@ void main() {
); );
final behavior = ScoreComponentScalingBehavior(); final behavior = ScoreComponentScalingBehavior();
await game.ensureAdd(parent); await game.ensureAdd(parent);
await parent.add(behavior); await parent.ensureAdd(behavior);
expect(parent.children, contains(behavior)); expect(parent.children, contains(behavior));
}); });

Loading…
Cancel
Save