photoprism/internal/session/token_test.go
Michael Mayer bdf0cde8a6 Backend: Add session package #169
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2019-12-28 09:48:36 +01:00

15 lines
223 B
Go

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))
}
}