Formatting

This commit is contained in:
Tobe O 2018-08-21 10:18:20 -04:00
parent 3f12f4d581
commit 99b1630caa

View file

@ -63,7 +63,8 @@ void testReflector(Reflector reflector) {
test('newInstance works', () { test('newInstance works', () {
var type = container.reflector.reflectType(Pokemon); var type = container.reflector.reflectType(Pokemon);
var instance = var instance =
type.newInstance('changeName', [blaziken, 'Charizard']).reflectee as Pokemon; type.newInstance('changeName', [blaziken, 'Charizard']).reflectee
as Pokemon;
print(instance); print(instance);
expect(instance.name, 'Charizard'); expect(instance.name, 'Charizard');
expect(instance.type, PokemonType.fire); expect(instance.type, PokemonType.fire);