photoprism/internal/session/id_test.go
Michael Mayer f5a8c5a45d Auth: Session and ACL enhancements #98 #1746
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-09-28 09:01:17 +02:00

15 lines
208 B
Go

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