Skip to content

Commit

Permalink
add introspection test
Browse files Browse the repository at this point in the history
  • Loading branch information
burner committed Mar 18, 2024
1 parent d843886 commit 01e1d10
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source/graphql/parsertests.d
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,20 @@ user(id: 1) {
}
}}
`);
tests ~= TestCase(32, QueryParser.yes,
`query IntrospectionDroidFieldsQuery {
__typenameA
__type(name: "Droid") {
name
fields {
name
type {
name
kind
}
}
}
}`);

foreach(test; tests) {
auto l = Lexer(test.str, test.qp);
Expand Down

0 comments on commit 01e1d10

Please sign in to comment.