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(
'adds new children',
setUp: (game, _) async {
await game.onLoad();
final component = Component();
final dashAnimatronic = DashAnimatronic(
children: [component],
);
await game.ensureAdd(dashAnimatronic);
await game.ready();
},
verify: (game, _) async {
final dashAnimatronic =

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

Loading…
Cancel
Save