Skip to content

Commit

Permalink
simplified test
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegIlyenko authored and nickhudkins committed Dec 10, 2020
1 parent 4db9498 commit 1bc4663
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -967,8 +967,7 @@ class ResolverBasedAstSchemaBuilderSpec extends AnyWordSpec with Matchers with F
val TestDir = Directive("dir", locations = Set(DL.Object))

val builder = resolverBased[Any](DirectiveFieldProvider(TestDir, c List(MaterializedField(c.origin,
Field("hello", c.materializer.getScalarType(c.origin, ast.NamedType("String")),
resolve = (_: Context[Any, Any]) "world")))))
Field("hello", c.scalarType("String"), resolve = (_: Context[Any, Any]) "world")))))

val schemaAst = gql"type Query @dir"

Expand Down

0 comments on commit 1bc4663

Please sign in to comment.