Skip to content

Commit 0bad071

Browse files
committed
feat(Compatibility) scaffold more execution tests
1 parent bf7b9b6 commit 0bad071

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

lib/graphql/compatibility/execution_specification.rb

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def test_it_propagates_nulls_to_field
231231
success = res["data"]["success"]
232232

233233
assert_equal nil, failure, "It propagates nulls to the next nullable field"
234-
assert_equal "SNCC", success["name"], "It serves the same object if no invalid null is encountered"
234+
assert_equal({"name" => "SNCC"}, success, "It serves the same object if no invalid null is encountered")
235235
assert_equal 1, res["errors"].length , "It returns an error for the invalid null"
236236
end
237237

@@ -333,6 +333,22 @@ def test_it_provides_nodes_to_resolve
333333
def test_it_runs_the_introspection_query
334334
execute_query(GraphQL::Introspection::INTROSPECTION_QUERY)
335335
end
336+
337+
def test_it_propagates_deeply_nested_nulls
338+
skip
339+
end
340+
341+
def test_it_doesnt_add_errors_for_invalid_nulls_from_execution_errors
342+
skip
343+
end
344+
345+
def test_it_passes_invalid_nulls_to_schema
346+
skip
347+
end
348+
349+
def test_it_includes_path_and_index_in_error_path
350+
skip
351+
end
336352
end
337353
end
338354
end

0 commit comments

Comments
 (0)