Skip to content

Commit baaac04

Browse files
Adding Check for source location to be as expected
1 parent 42962cd commit baaac04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/groovy/graphql/parser/ParserTest.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,9 @@ class ParserTest extends Specification {
529529
assert selection.arguments[0].value instanceof NullValue
530530
assert selection.arguments[1].value instanceof NullValue
531531

532+
assert selection.arguments[0].sourceLocation.toString() == "SourceLocation{line=1, column=7}"
533+
assert selection.arguments[1].sourceLocation.toString() == "SourceLocation{line=1, column=18}"
534+
532535
}
533536

534537

0 commit comments

Comments
 (0)