Add test for semantics from #21
This commit is contained in:
parent
18c4c555b5
commit
3adfe96ff3
1 changed files with 12 additions and 0 deletions
|
|
@ -176,6 +176,18 @@ func TestGetCool(t *testing.T) {
|
|||
runAndTestQuery(query, expected, t)
|
||||
}
|
||||
|
||||
func TestNullSemantics(t *testing.T) {
|
||||
query := `
|
||||
[{"id": "cool", "status": null}]
|
||||
`
|
||||
expected := `
|
||||
[
|
||||
{"id": "cool", "status": null}
|
||||
]
|
||||
`
|
||||
runAndTestQuery(query, expected, t)
|
||||
}
|
||||
|
||||
func TestGetFollowsList(t *testing.T) {
|
||||
query := `
|
||||
[{"id": "C", "follows": []}]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue