mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
17 lines
450 B
Go
17 lines
450 B
Go
package authn
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestIssuer(t *testing.T) {
|
|
assert.Equal(t, "", Issuer(""))
|
|
assert.Equal(t, "", Issuer(" "))
|
|
assert.Equal(t, "https://accounts.google.com", Issuer("https://accounts.google.com"))
|
|
assert.Equal(t, "user://123456", Issuer("user://123456"))
|
|
assert.Equal(t, "issuer.example.com", Issuer("issuer.example.com"))
|
|
assert.Equal(t, "example", Issuer(" example "))
|
|
}
|