Skip to content

Commit 160abcd

Browse files
committed
Also check error message
1 parent 44be290 commit 160abcd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/groovy/graphql/execution/NoErrorPropagationTest.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class NoErrorPropagationTest extends Specification {
6969

7070
then:
7171
er.data == null
72+
er.errors[0].message == "The field at path '/foo' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value. The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'Int' within parent type 'Query'"
7273
er.errors[0].path.toList() == ["foo"]
7374
}
7475

0 commit comments

Comments
 (0)