Skip to content

Commit

Permalink
Some more fixes to Flapper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
astivi committed Jul 3, 2024
1 parent f8c313b commit a73a96b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ void main() {
flameTester.testGameWidget(
'adds a FlapperSpinningBehavior to FlapperEntrance',
setUp: (game, _) async {
await game.onLoad();
final flapper = Flapper();
await game.ensureAdd(flapper);
await game.ready();
},
verify: (game, _) async {
final flapper = game.descendants().whereType<Flapper>().single;
Expand All @@ -91,6 +93,7 @@ void main() {
flameTester.testGameWidget(
'flap stops animating after animation completes',
setUp: (game, _) async {
await game.onLoad();
final flapper = Flapper();
await game.ensureAdd(flapper);
await game.ready();
Expand Down

0 comments on commit a73a96b

Please sign in to comment.