signaller/internal/backends/memory/tokens_test.go
2019-08-05 19:39:28 +05:00

15 lines
263 B
Go

package memory
import (
"testing"
"github.com/signaller-matrix/signaller/internal"
"github.com/stretchr/testify/assert"
)
func TestTokenGenerator(t *testing.T) {
token := internal.RandomString(defaultTokenSize)
assert.Len(t, token, defaultTokenSize*2)
}