mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-24 19:32:20 +00:00
15 lines
263 B
Go
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)
|
|
}
|