Cloudreve/pkg/authn/auth_test.go
2020-02-21 12:09:43 +08:00

17 lines
349 B
Go

package authn
import (
"github.com/HFO4/cloudreve/pkg/cache"
"github.com/stretchr/testify/assert"
"testing"
)
func TestInit(t *testing.T) {
asserts := assert.New(t)
cache.Set("setting_siteURL", "http://cloudreve.org", 0)
cache.Set("setting_siteName", "Cloudreve", 0)
asserts.NotPanics(func() {
Init()
})
asserts.NotNil(AuthnInstance)
}