|
|
@ -269,9 +269,7 @@ void main() {
|
|
|
|
group('adds', () {
|
|
|
|
group('adds', () {
|
|
|
|
flameTester.test('new children', (game) async {
|
|
|
|
flameTester.test('new children', (game) async {
|
|
|
|
final component = Component();
|
|
|
|
final component = Component();
|
|
|
|
final ramp = SpaceshipRamp.test(
|
|
|
|
final ramp = SpaceshipRamp();
|
|
|
|
bloc: _MockSpaceshipRampCubit(),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
await ramp.addAll([component]);
|
|
|
|
await ramp.addAll([component]);
|
|
|
|
await game.ensureAdd(ramp);
|
|
|
|
await game.ensureAdd(ramp);
|
|
|
|
expect(ramp.children, contains(component));
|
|
|
|
expect(ramp.children, contains(component));
|
|
|
|