Skip to content

Commit

Permalink
simplified test
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegIlyenko committed Oct 7, 2018
1 parent ce72441 commit bdaf476
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -966,8 +966,7 @@ class ResolverBasedAstSchemaBuilderSpec extends WordSpec with Matchers with Futu
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 bdaf476

Please sign in to comment.