diff --git a/test/game/behaviors/camera_focusing_behavior_test.dart b/test/game/behaviors/camera_focusing_behavior_test.dart index a856b392..fb0d91c5 100644 --- a/test/game/behaviors/camera_focusing_behavior_test.dart +++ b/test/game/behaviors/camera_focusing_behavior_test.dart @@ -34,6 +34,19 @@ void main() { expect(game.descendants(), contains(behavior)); }); + flameTester.test('resizes and snaps', (game) async { + final behavior = CameraFocusingBehavior(); + await game.ensureAdd( + FlameBlocProvider.value( + value: GameBloc(), + children: [behavior], + ), + ); + + behavior.onGameResize(Vector2.all(10)); + expect(game.camera.zoom, greaterThan(0)); + }); + flameTester.test( 'changes focus when loaded', (game) async {