test: fixed golden test

pull/208/head
RuiAlonso 3 years ago
parent cebd9ed152
commit 03ad71e98c

@ -20,10 +20,14 @@ void main() {
flameTester.testGameWidget( flameTester.testGameWidget(
'renders correctly', 'renders correctly',
setUp: (game, tester) async { setUp: (game, tester) async {
await game.images.loadAll(assets);
await game.addFromBlueprint(DinoWalls()); await game.addFromBlueprint(DinoWalls());
await game.ready();
game.camera.followVector2(Vector2.zero()); game.camera.followVector2(Vector2.zero());
game.camera.zoom = 6.5; game.camera.zoom = 6.5;
await game.ready();
await tester.pump();
}, },
verify: (game, tester) async { verify: (game, tester) async {
await expectLater( await expectLater(

Loading…
Cancel
Save