Skip to content

Commit

Permalink
better naming, and inline the quest
Browse files Browse the repository at this point in the history
  • Loading branch information
orpheuslummis committed Mar 21, 2023
1 parent b07f650 commit 7fdd911
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions tests/integration/schema/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,22 @@ import (
schemaTypes "github.com/sourcenetwork/defradb/request/graphql/schema/types"
)

const clientIntrospectionRequest string = `
query IntrospectionQuery {
__schema {
types {
kind
name
description
}
}
}
`

// TestClientIntrospectionExplainTypeDefined tests that the introspection query returns a schema that
// TestIntrospectionExplainTypeDefined tests that the introspection query returns a schema that
// defines the ExplainType enum.
func TestClientIntrospectionExplainTypeDefined(t *testing.T) {
func TestIntrospectionExplainTypeDefined(t *testing.T) {
test := RequestTestCase{
Schema: []string{},
IntrospectionRequest: clientIntrospectionRequest,
Schema: []string{},
IntrospectionRequest: `
query IntrospectionQuery {
__schema {
types {
kind
name
description
}
}
}
`,
ContainsData: map[string]any{
"__schema": map[string]any{
"types": []any{
Expand Down

0 comments on commit 7fdd911

Please sign in to comment.