Skip to content

Commit

Permalink
Improve comments, remove error checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBQu committed Dec 5, 2024
1 parent f6a0eb8 commit 5afefe6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions http/handler_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ func TestExecRequest_HttpGet_WithOperationName(t *testing.T) {
err = json.Unmarshal(resData, &gqlResponse)
require.NoError(t, err)

// errors should be omitted
_, ok := gqlResponse["errors"]
assert.False(t, ok)

// Compare the response data to the expected output
// Ensure the response data contains names, but not the _docID field
expectedJSON := `{
"data": {
"User": [
Expand Down Expand Up @@ -186,11 +182,7 @@ func TestExecRequest_HttpGet_WithVariables(t *testing.T) {
err = json.Unmarshal(resData, &gqlResponse)
require.NoError(t, err)

// errors should be omitted
_, ok := gqlResponse["errors"]
assert.False(t, ok)

// Compare the response data to the expected output
// Ensure only bob is returned, because of the filter variable
expectedJSON := `{
"data": {
"User": [
Expand Down

0 comments on commit 5afefe6

Please sign in to comment.