Skip to content

Commit bf75b19

Browse files
committed
Update integration tests affected by the changes
1 parent 66f5abb commit bf75b19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/graphql/execution/errors_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def non_nullable_array
307307
it "outputs the appropriate error message when using non-interpreter schema" do
308308
res = ErrorsTestSchemaWithoutInterpreter.execute("{ nonNullableArray }")
309309
expected_error = {
310-
"message" => "Cannot return null for non-nullable field Query.nonNullableArray",
310+
"message" => "Cannot return null for non-nullable element of type 'String!' for Query.nonNullableArray",
311311
"path" => ["nonNullableArray", 0],
312312
"locations" => [{ "line" => 1, "column" => 3 }]
313313
}
@@ -317,7 +317,7 @@ def non_nullable_array
317317
it "outputs the appropriate error message when using interpreter schema" do
318318
res = ErrorsTestSchema.execute("{ nonNullableArray }")
319319
expected_error = {
320-
"message" => "Cannot return null for non-nullable field Query.nonNullableArray",
320+
"message" => "Cannot return null for non-nullable element of type 'String!' for Query.nonNullableArray",
321321
"path" => ["nonNullableArray", 0],
322322
"locations" => [{ "line" => 1, "column" => 3 }]
323323
}

spec/graphql/execution/interpreter_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def execute_multiplex(multiplex:)
511511
}
512512
}
513513
GRAPHQL
514-
assert_equal ["Cannot return null for non-nullable field Query.find"], res["errors"].map { |e| e["message"] }
514+
assert_equal ["Cannot return null for non-nullable element of type 'Entity!' for Query.find"], res["errors"].map { |e| e["message"] }
515515
end
516516

517517
it "works with lists of unions" do

0 commit comments

Comments
 (0)