From eb1db3c554bb3a608805b764a24c0618d610635c Mon Sep 17 00:00:00 2001 From: Tobe O Date: Fri, 29 Mar 2019 14:45:02 -0400 Subject: [PATCH] Format everything --- graphql_parser/test/common.dart | 2 +- graphql_parser/test/directive_test.dart | 2 +- graphql_parser/test/selection_set_test.dart | 2 +- graphql_parser/test/type_test.dart | 2 +- graphql_schema/lib/src/gen.dart | 3 ++- graphql_schema/lib/src/validation_result.dart | 1 + graphql_schema/test/inheritance_test.dart | 2 +- graphql_schema/test/serialize_test.dart | 3 ++- 8 files changed, 10 insertions(+), 7 deletions(-) diff --git a/graphql_parser/test/common.dart b/graphql_parser/test/common.dart index a7fb02e9..728b96a8 100644 --- a/graphql_parser/test/common.dart +++ b/graphql_parser/test/common.dart @@ -1,3 +1,3 @@ import 'package:graphql_parser/graphql_parser.dart'; -Parser parse(String text) => new Parser(scan(text)); \ No newline at end of file +Parser parse(String text) => new Parser(scan(text)); diff --git a/graphql_parser/test/directive_test.dart b/graphql_parser/test/directive_test.dart index c1412a0f..454c89aa 100644 --- a/graphql_parser/test/directive_test.dart +++ b/graphql_parser/test/directive_test.dart @@ -25,7 +25,7 @@ main() { var parser = parse(x.toString())..parseDirective(); return parser.errors.isNotEmpty; }, 'fails to parse directive'); - + expect('@', isSyntaxError); expect('@foo:', isSyntaxError); expect('@foo (', isSyntaxError); diff --git a/graphql_parser/test/selection_set_test.dart b/graphql_parser/test/selection_set_test.dart index fd7a094e..9e9189f9 100644 --- a/graphql_parser/test/selection_set_test.dart +++ b/graphql_parser/test/selection_set_test.dart @@ -47,7 +47,7 @@ main() { var parser = parse(x.toString())..parseSelectionSet(); return parser.errors.isNotEmpty; }, 'fails to parse selection set'); - + expect('{foo,bar,baz', throwsSyntaxError); }); } diff --git a/graphql_parser/test/type_test.dart b/graphql_parser/test/type_test.dart index 7fa12109..1da1f4f8 100644 --- a/graphql_parser/test/type_test.dart +++ b/graphql_parser/test/type_test.dart @@ -39,7 +39,7 @@ main() { var parser = parse(x.toString())..parseType(); return parser.errors.isNotEmpty; }, 'fails to parse type'); - + expect('[foo', throwsSyntaxError); expect('[', throwsSyntaxError); }); diff --git a/graphql_schema/lib/src/gen.dart b/graphql_schema/lib/src/gen.dart index 228ace1a..40b5efe3 100644 --- a/graphql_schema/lib/src/gen.dart +++ b/graphql_schema/lib/src/gen.dart @@ -23,7 +23,8 @@ GraphQLObjectField field( String name, GraphQLType type, {Iterable> inputs: const [], GraphQLFieldResolver resolve, - String deprecationReason, String description}) { + String deprecationReason, + String description}) { return new GraphQLObjectField(name, type, arguments: inputs, resolve: resolve, diff --git a/graphql_schema/lib/src/validation_result.dart b/graphql_schema/lib/src/validation_result.dart index 76f54ce5..4a85d10f 100644 --- a/graphql_schema/lib/src/validation_result.dart +++ b/graphql_schema/lib/src/validation_result.dart @@ -1,4 +1,5 @@ part of graphql_schema.src.schema; + /// Represents the result of asserting an input [value] against a [GraphQLType]. class ValidationResult { diff --git a/graphql_schema/test/inheritance_test.dart b/graphql_schema/test/inheritance_test.dart index 0157bcfa..8671c6dd 100644 --- a/graphql_schema/test/inheritance_test.dart +++ b/graphql_schema/test/inheritance_test.dart @@ -64,4 +64,4 @@ void main() { expect(a.possibleTypes, contains(c)); }); }); -} \ No newline at end of file +} diff --git a/graphql_schema/test/serialize_test.dart b/graphql_schema/test/serialize_test.dart index a27bf1ec..997afca6 100644 --- a/graphql_schema/test/serialize_test.dart +++ b/graphql_schema/test/serialize_test.dart @@ -96,7 +96,8 @@ main() { var u = new GraphQLUnionType('Monster', [pokemonType, digimonType]); 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', () {