feat: included instantiation test

pull/111/head
alestiago 4 years ago
parent 0f62028eeb
commit 386c1f93d5

@ -15,6 +15,15 @@ void main() {
final flameTester = FlameTester(FlameGame.new);
group('ComponentController', () {
flameTester.test(
'can be instantiated',
(game) async {
expect(
TestComponentController(Component()),
isA<ComponentController>(),
);
},
);
flameTester.test(
'throws AssertionError when not attached to controlled component',
(game) async {

Loading…
Cancel
Save