github.com/kotovmak/go-admin@v1.1.1/tests/frameworks/chi/chi_test.go (about)

     1  package chi
     2  
     3  import (
     4  	"net/http"
     5  	"testing"
     6  
     7  	"github.com/gavv/httpexpect"
     8  	"github.com/kotovmak/go-admin/tests/common"
     9  )
    10  
    11  func TestChi(t *testing.T) {
    12  	common.ExtraTest(httpexpect.WithConfig(httpexpect.Config{
    13  		Client: &http.Client{
    14  			Transport: httpexpect.NewBinder(internalHandler()),
    15  			Jar:       httpexpect.NewJar(),
    16  		},
    17  		Reporter: httpexpect.NewAssertReporter(t),
    18  	}))
    19  }