Skip to content

Commit

Permalink
Fixes some of the animatronic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
astivi committed Jul 3, 2024
1 parent 989b0ed commit d69dbf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit d69dbf6

Please sign in to comment.