File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/test/groovy/graphql/schema/idl Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1770,7 +1770,8 @@ class SchemaGeneratorTest extends Specification {
1770
1770
1771
1771
def appliedDirective = f1.getAppliedDirective("deprecated")
1772
1772
appliedDirective.name == "deprecated"
1773
- appliedDirective.getArgument("reason").type == GraphQLString
1773
+ appliedDirective.getArgument("reason").type instanceof GraphQLNonNull
1774
+ (appliedDirective.getArgument("reason").type as GraphQLNonNull).wrappedType == GraphQLString
1774
1775
printAst(appliedDirective.getArgument("reason").argumentValue.value as Node) == '"No longer supported"'
1775
1776
1776
1777
when:
@@ -1781,7 +1782,8 @@ class SchemaGeneratorTest extends Specification {
1781
1782
1782
1783
def appliedDirective2 = f2.getAppliedDirective("deprecated")
1783
1784
appliedDirective2.name == "deprecated"
1784
- appliedDirective2.getArgument("reason").type == GraphQLString
1785
+ appliedDirective2.getArgument("reason").type instanceof GraphQLNonNull
1786
+ (appliedDirective2.getArgument("reason").type as GraphQLNonNull).wrappedType == GraphQLString
1785
1787
printAst(appliedDirective2.getArgument("reason").argumentValue.value as Node) == '"Just because"'
1786
1788
def directive2 = f2.getDirective("deprecated")
1787
1789
printAst(directive2.getArgument("reason").argumentDefaultValue.value as Node) == '"No longer supported"'
You can’t perform that action at this time.
0 commit comments