Fixes some of the animatronic tests

pull/505/head
Alvaro Almeida Freire Stivi 1 year ago
parent 989b0edfb0
commit d69dbf66f6
No known key found for this signature in database

@ -68,11 +68,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 dashAnimatronic = DashAnimatronic( final dashAnimatronic = DashAnimatronic(
children: [component], children: [component],
); );
await game.ensureAdd(dashAnimatronic); await game.ensureAdd(dashAnimatronic);
await game.ready();
}, },
verify: (game, _) async { verify: (game, _) async {
final dashAnimatronic = final dashAnimatronic =

@ -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 =

Loading…
Cancel
Save