chore: fix personal nits

pull/277/head
Allison Ryan 3 years ago
parent 885d138faa
commit 7456793c61

@ -8,9 +8,6 @@ import 'package:pinball_flame/pinball_flame.dart';
/// {@endtemplate} /// {@endtemplate}
class ChromeDinoSpittingBehavior extends Component class ChromeDinoSpittingBehavior extends Component
with ContactCallbacks, ParentIsA<ChromeDino> { with ContactCallbacks, ParentIsA<ChromeDino> {
/// {@macro chrome_dino_spitting_behavior}
ChromeDinoSpittingBehavior();
bool _waitingForSwivel = true; bool _waitingForSwivel = true;
void _onNewState(ChromeDinoState state) { void _onNewState(ChromeDinoState state) {

@ -29,15 +29,6 @@ void main() {
}, },
); );
flameTester.test('adds new children', (game) async {
final component = Component();
final chromeDino = ChromeDino(
children: [component],
);
await game.ensureAdd(chromeDino);
expect(chromeDino.children, contains(component));
});
flameTester.testGameWidget( flameTester.testGameWidget(
'renders correctly', 'renders correctly',
setUp: (game, tester) async { setUp: (game, tester) async {
@ -136,6 +127,15 @@ void main() {
isNotNull, isNotNull,
); );
}); });
flameTester.test('new children', (game) async {
final component = Component();
final chromeDino = ChromeDino(
children: [component],
);
await game.ensureAdd(chromeDino);
expect(chromeDino.children, contains(component));
});
}); });
}); });
} }

Loading…
Cancel
Save