Format everything

This commit is contained in:
Tobe O 2019-03-29 14:45:02 -04:00
parent b259c2c5b8
commit eb1db3c554
8 changed files with 10 additions and 7 deletions

View file

@ -23,7 +23,8 @@ GraphQLObjectField<T, Serialized> field<T, Serialized>(
String name, GraphQLType<T, Serialized> type, String name, GraphQLType<T, Serialized> type,
{Iterable<GraphQLFieldInput<T, Serialized>> inputs: const [], {Iterable<GraphQLFieldInput<T, Serialized>> inputs: const [],
GraphQLFieldResolver<T, Serialized> resolve, GraphQLFieldResolver<T, Serialized> resolve,
String deprecationReason, String description}) { String deprecationReason,
String description}) {
return new GraphQLObjectField<T, Serialized>(name, type, return new GraphQLObjectField<T, Serialized>(name, type,
arguments: inputs, arguments: inputs,
resolve: resolve, resolve: resolve,

View file

@ -1,4 +1,5 @@
part of graphql_schema.src.schema; part of graphql_schema.src.schema;
/// Represents the result of asserting an input [value] against a [GraphQLType]. /// Represents the result of asserting an input [value] against a [GraphQLType].
class ValidationResult<Value> { class ValidationResult<Value> {

View file

@ -96,7 +96,8 @@ main() {
var u = new GraphQLUnionType('Monster', [pokemonType, digimonType]); var u = new GraphQLUnionType('Monster', [pokemonType, digimonType]);
expect(u.serialize({'size': 10.0}), {'size': 10.0}); expect(u.serialize({'size': 10.0}), {'size': 10.0});
expect(u.serialize({'name': 'Charmander', 'type': 'FIRE'}), {'name': 'Charmander', 'type': 'FIRE'}); expect(u.serialize({'name': 'Charmander', 'type': 'FIRE'}),
{'name': 'Charmander', 'type': 'FIRE'});
}); });
test('nested object', () { test('nested object', () {