@@ -108,7 +108,7 @@ class DataFetcherWithErrorsAndDataTest extends Specification {
108108 result.errors.size() == 1
109109 result.errors[0].path == ["root", "parent", "child", "badField"]
110110 result.errors[0].message == "badField is bad"
111- result.errors[0].locations == [new SourceLocation(7 , 27)]
111+ result.errors[0].locations == [new SourceLocation(6 , 27)]
112112
113113 result.data["root"]["parent"]["child"]["goodField"] == "good"
114114 result.data["root"]["parent"]["child"]["badField"] == null
@@ -191,10 +191,10 @@ class DataFetcherWithErrorsAndDataTest extends Specification {
191191 result.errors.size() == 2
192192 result.errors[0].path == ["root", "parent", "child", "goodField"]
193193 result.errors[0].message == "goodField is bad"
194- result.errors[0].locations == [new SourceLocation(8 , 31)]
194+ result.errors[0].locations == [new SourceLocation(7 , 31)]
195195 result.errors[1].path == ["root", "parent", "child", "badField"]
196196 result.errors[1].message == "badField is bad"
197- result.errors[1].locations == [new SourceLocation(8 , 31)]
197+ result.errors[1].locations == [new SourceLocation(7 , 31)]
198198
199199 result.data["root"]["parent"]["child"]["goodField"] == null
200200 result.data["root"]["parent"]["child"]["badField"] == null
@@ -268,11 +268,11 @@ class DataFetcherWithErrorsAndDataTest extends Specification {
268268 result.errors.size() == 2
269269 result.errors[0].path == ["parent", "child"]
270270 result.errors[0].message == "error 1"
271- result.errors[0].locations == [new SourceLocation(7 , 27)]
271+ result.errors[0].locations == [new SourceLocation(6 , 27)]
272272
273273 result.errors[1].path == ["parent", "child"]
274274 result.errors[1].message == "error 2"
275- result.errors[1].locations == [new SourceLocation(7 , 27)]
275+ result.errors[1].locations == [new SourceLocation(6 , 27)]
276276
277277 result.data["parent"]["child"] == null
278278
@@ -344,7 +344,7 @@ class DataFetcherWithErrorsAndDataTest extends Specification {
344344 result.errors.size() == 1
345345 result.errors[0].path == ["parent", "child", "badField"]
346346 result.errors[0].message == "badField is bad"
347- result.errors[0].locations == [new SourceLocation(7 , 27)]
347+ result.errors[0].locations == [new SourceLocation(6 , 27)]
348348
349349 result.data["parent"]["child"]["goodField"] == "good"
350350 result.data["parent"]["child"]["badField"] == null
0 commit comments