photoprism/internal/session/token_test.go
Michael Mayer 5d59b50912 Sharing: ACL authorization for REST API #18
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-25 14:54:04 +02:00

15 lines
211 B
Go

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