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() {
1414 let graphql_parser_schema = graphql_parser:: parse_schema ( SCHEMA_GRAPHQL ) . unwrap ( ) ;
1515 let json = Schema :: from ( json) ;
1616 let gql = Schema :: from ( graphql_parser_schema) ;
17+
1718 assert_eq ! ( json. scalars, gql. scalars) ;
1819 for ( json, gql) in json. objects . iter ( ) . zip ( gql. objects . iter ( ) ) {
1920 assert_eq ! ( json, gql)
2021 }
2122 for ( json, gql) in json. unions . iter ( ) . zip ( gql. unions . iter ( ) ) {
2223 assert_eq ! ( json, gql)
2324 }
25+ for ( json, gql) in json. interfaces . iter ( ) . zip ( gql. interfaces . iter ( ) ) {
26+ assert_eq ! ( json, gql)
27+ }
2428 assert_eq ! ( json. interfaces, gql. interfaces) ;
2529 assert_eq ! ( json. query_type, gql. query_type) ;
2630 assert_eq ! ( json. mutation_type, gql. mutation_type) ;
You can’t perform that action at this time.
0 commit comments