File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ a query language for APIs created by Facebook.
13
13
14
14
The current version 1.0.0rc2 of GraphQL-core-next is up-to-date with GraphQL.js
15
15
version 14.0.0rc2. All parts of the API are covered by an extensive test
16
- suite of currently 1529 unit tests.
16
+ suite of currently 1530 unit tests.
17
17
18
18
19
19
## Documentation
Original file line number Diff line number Diff line change @@ -885,6 +885,20 @@ def unknown_subscription_type():
885
885
assert msg == (
886
886
"Specified subscription type 'Awesome' not found in document." )
887
887
888
+ def does_not_consider_directive_names ():
889
+ body = dedent ("""
890
+ schema {
891
+ query: Foo
892
+ }
893
+
894
+ directive @ Foo on QUERY
895
+ """ )
896
+ doc = parse (body )
897
+ with raises (TypeError ) as exc_info :
898
+ build_ast_schema (doc )
899
+ msg = str (exc_info .value )
900
+ assert msg == "Specified query type 'Foo' not found in document."
901
+
888
902
def does_not_consider_operation_names ():
889
903
body = dedent ("""
890
904
schema {
You can’t perform that action at this time.
0 commit comments