Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
meskill committed Dec 26, 2024
1 parent 9d6d2bc commit c828ebe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/core/blueprint/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ use crate::core::directive::DirectiveCodec;
fn validate_query(config: &Config) -> Valid<&str, BlueprintError> {
let query_type_name = config
.schema
.query.as_deref()
.query
.as_deref()
// Based on the [spec](https://spec.graphql.org/October2021/#sec-Root-Operation-Types.Default-Root-Operation-Type-Names)
// the default name for query type is `Query` is not specified explicitly
.unwrap_or("Query");
Expand Down Expand Up @@ -72,7 +73,8 @@ pub fn validate_field_has_resolver(
fn validate_mutation(config: &Config) -> Valid<Option<&str>, BlueprintError> {
let mutation_type_name = config
.schema
.mutation.as_deref()
.mutation
.as_deref()
// Based on the [spec](https://spec.graphql.org/October2021/#sec-Root-Operation-Types.Default-Root-Operation-Type-Names)
// the default name for mutation type is `Mutation` is not specified explicitly
.unwrap_or("Mutation");
Expand Down
2 changes: 1 addition & 1 deletion src/core/config/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ mod reader_tests {

let config = reader
.read(format!(
"{}/examples/jsonplaceholder_script.graphql",
"{}/examples/jsonplaceholder_script.yaml",
cargo_manifest
))
.await
Expand Down

0 comments on commit c828ebe

Please sign in to comment.