|
|
@ -70,11 +70,13 @@ void main() {
|
|
|
|
flameTester.testGameWidget(
|
|
|
|
flameTester.testGameWidget(
|
|
|
|
'adds new children',
|
|
|
|
'adds new children',
|
|
|
|
setUp: (game, _) async {
|
|
|
|
setUp: (game, _) async {
|
|
|
|
|
|
|
|
await game.onLoad();
|
|
|
|
final component = Component();
|
|
|
|
final component = Component();
|
|
|
|
final sparkyAnimatronic = SparkyAnimatronic(
|
|
|
|
final sparkyAnimatronic = SparkyAnimatronic(
|
|
|
|
children: [component],
|
|
|
|
children: [component],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
await game.ensureAdd(sparkyAnimatronic);
|
|
|
|
await game.ensureAdd(sparkyAnimatronic);
|
|
|
|
|
|
|
|
await game.ready();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
verify: (game, _) async {
|
|
|
|
verify: (game, _) async {
|
|
|
|
final sparkyAnimatronic =
|
|
|
|
final sparkyAnimatronic =
|
|
|
|