From 386c1f93d5b32e70a593d5620d96a88edf692498 Mon Sep 17 00:00:00 2001 From: alestiago Date: Wed, 30 Mar 2022 18:12:30 +0100 Subject: [PATCH] feat: included instantiation test --- test/flame/component_controller_test.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/flame/component_controller_test.dart b/test/flame/component_controller_test.dart index 4124cedf..dbaf9cd4 100644 --- a/test/flame/component_controller_test.dart +++ b/test/flame/component_controller_test.dart @@ -15,6 +15,15 @@ void main() { final flameTester = FlameTester(FlameGame.new); group('ComponentController', () { + flameTester.test( + 'can be instantiated', + (game) async { + expect( + TestComponentController(Component()), + isA(), + ); + }, + ); flameTester.test( 'throws AssertionError when not attached to controlled component', (game) async {