From d80fb731946f57efdcf9df0b94385a82b1413a45 Mon Sep 17 00:00:00 2001 From: alestiago Date: Thu, 5 May 2022 17:58:41 +0100 Subject: [PATCH] test: coverage --- test/game/behaviors/camera_focusing_behavior_test.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/game/behaviors/camera_focusing_behavior_test.dart b/test/game/behaviors/camera_focusing_behavior_test.dart index dc4bf718..ba6ea3a1 100644 --- a/test/game/behaviors/camera_focusing_behavior_test.dart +++ b/test/game/behaviors/camera_focusing_behavior_test.dart @@ -85,7 +85,9 @@ void main() { final zoom = behavior.children.whereType().single; game.update(zoom.controller.duration!); + game.update(0); + expect(zoom.controller.completed, isTrue); expect( game.camera.position, isNot(equals(previousPosition)), @@ -109,7 +111,9 @@ void main() { final zoom = behavior.children.whereType().single; game.update(zoom.controller.duration!); + game.update(0); + expect(zoom.controller.completed, isTrue); expect( game.camera.position, isNot(equals(previousPosition)),