photoprism/internal/config/client_test.go
2020-07-13 17:37:43 +02:00

20 lines
450 B
Go

package config
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestConfig_PublicConfig(t *testing.T) {
config := NewTestConfig()
result := config.PublicConfig()
assert.IsType(t, ClientConfig{}, result)
assert.Equal(t, true, result.Public)
}
func TestConfig_GuestConfig(t *testing.T) {
config := NewTestConfig()
result := config.GuestConfig()
assert.IsType(t, ClientConfig{}, result)
assert.Equal(t, true, result.Public)
}