(t *testing.T, query string, headers http.Header, expectedResult string)
| 51 | } |
| 52 | |
| 53 | func graphqlHelper(t *testing.T, query string, headers http.Header, |
| 54 | expectedResult string) { |
| 55 | params := &common.GraphQLParams{ |
| 56 | Query: query, |
| 57 | Headers: headers, |
| 58 | } |
| 59 | queryResult := params.ExecuteAsPost(t, common.GraphqlURL) |
| 60 | common.RequireNoGQLErrors(t, queryResult) |
| 61 | testutil.CompareJSON(t, expectedResult, string(queryResult.Data)) |
| 62 | } |
| 63 | |
| 64 | func TestDisallowNonGalaxy(t *testing.T) { |
| 65 | setup(t) |
no test coverage detected