This commit is contained in:
Erick Zanardo
2020-12-08 19:19:16 -03:00
committed by renancaraujo
parent bde8656510
commit c020383887
2 changed files with 5 additions and 2 deletions

View File

@@ -71,7 +71,8 @@ void main() {
expect(true, game.components.contains(component)); expect(true, game.components.contains(component));
}); });
test('when the component has onLoad function, adds after load completion', () async { test('when the component has onLoad function, adds after load completion',
() async {
final MyGame game = MyGame(); final MyGame game = MyGame();
final MyAsyncComponent component = MyAsyncComponent(); final MyAsyncComponent component = MyAsyncComponent();

View File

@@ -64,7 +64,9 @@ void main() {
expect(true, wrapper.containsChild(child)); expect(true, wrapper.containsChild(child));
}); });
test('when child is async loading, adds the child to the component after loading', () async { test(
'when child is async loading, adds the child to the component after loading',
() async {
final MyAsyncChild child = MyAsyncChild(); final MyAsyncChild child = MyAsyncChild();
final MyComposed wrapper = MyComposed(); final MyComposed wrapper = MyComposed();
await wrapper.addChild(child); await wrapper.addChild(child);