photoprism/internal/session/token_test.go

16 lines
223 B
Go
Raw Normal View History

package session
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestToken(t *testing.T) {
for n := 0; n < 5; n++ {
token := Token()
t.Logf("token: %s", token)
assert.Equal(t, 48, len(token))
}
}