...

Source file src/github.com/99designs/gqlgen/graphql/handler/extension/introspection_test.go

Documentation: github.com/99designs/gqlgen/graphql/handler/extension

     1  package extension
     2  
     3  import (
     4  	"context"
     5  	"testing"
     6  
     7  	"github.com/stretchr/testify/require"
     8  
     9  	"github.com/99designs/gqlgen/graphql"
    10  )
    11  
    12  func TestIntrospection(t *testing.T) {
    13  	rc := &graphql.OperationContext{
    14  		DisableIntrospection: true,
    15  	}
    16  	require.Nil(t, Introspection{}.MutateOperationContext(context.Background(), rc))
    17  	require.Equal(t, false, rc.DisableIntrospection)
    18  }
    19  

View as plain text