Skip to content

Commit 8dc9fa8

Browse files
committed
test prints nulls
1 parent cc76d3d commit 8dc9fa8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

graphql/language/tests/test_printer.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ def test_correctly_prints_mutation_with_artifacts():
6868
'''
6969

7070

71+
def test_correctly_prints_null():
72+
query_ast_shorthanded = parse('{ thingy(null: "wow", name: null) }')
73+
assert print_ast(query_ast_shorthanded) == '''{
74+
thingy(null: "wow", name: null)
75+
}
76+
'''
77+
78+
7179
def test_prints_kitchen_sink():
7280
ast = parse(KITCHEN_SINK)
7381
printed = print_ast(ast)

0 commit comments

Comments
 (0)