We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aef9527 commit 67e22afCopy full SHA for 67e22af
spec/graphql/query_spec.rb
@@ -45,7 +45,7 @@
45
let(:result) { query.result }
46
47
describe "when passed both a query string and a document" do
48
- it "returns an error to the client" do
+ it "returns an error to the client when query kwarg is used" do
49
assert_raises ArgumentError do
50
GraphQL::Query.new(
51
schema,
@@ -54,6 +54,16 @@
54
)
55
end
56
57
+
58
+ it "returns an error to the client" do
59
+ assert_raises ArgumentError do
60
+ GraphQL::Query.new(
61
+ schema,
62
+ "{ fromSource(source: COW) { id } }",
63
+ document: document
64
+ )
65
+ end
66
67
68
69
describe "when passed no query string or document" do
0 commit comments