File tree Expand file tree Collapse file tree 2 files changed +2996
-2929
lines changed
graphql_query_derive/src/tests Expand file tree Collapse file tree 2 files changed +2996
-2929
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,17 @@ fn ast_from_graphql_and_json_produce_the_same_schema() {
14
14
let graphql_parser_schema = graphql_parser:: parse_schema ( SCHEMA_GRAPHQL ) . unwrap ( ) ;
15
15
let json = Schema :: from ( json) ;
16
16
let gql = Schema :: from ( graphql_parser_schema) ;
17
+
17
18
assert_eq ! ( json. scalars, gql. scalars) ;
18
19
for ( json, gql) in json. objects . iter ( ) . zip ( gql. objects . iter ( ) ) {
19
20
assert_eq ! ( json, gql)
20
21
}
21
22
for ( json, gql) in json. unions . iter ( ) . zip ( gql. unions . iter ( ) ) {
22
23
assert_eq ! ( json, gql)
23
24
}
25
+ for ( json, gql) in json. interfaces . iter ( ) . zip ( gql. interfaces . iter ( ) ) {
26
+ assert_eq ! ( json, gql)
27
+ }
24
28
assert_eq ! ( json. interfaces, gql. interfaces) ;
25
29
assert_eq ! ( json. query_type, gql. query_type) ;
26
30
assert_eq ! ( json. mutation_type, gql. mutation_type) ;
You can’t perform that action at this time.
0 commit comments