mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-12-22 08:51:50 +00:00
Add token generator test
This commit is contained in:
parent
149628e07f
commit
f7fd9f190e
12
internal/backends/memory/tokens_test.go
Normal file
12
internal/backends/memory/tokens_test.go
Normal file
@ -0,0 +1,12 @@
|
||||
package memory
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestTokenGenerator(t *testing.T) {
|
||||
token := newToken(defaultTokenSize)
|
||||
assert.Len(t, token, defaultTokenSize*2)
|
||||
}
|
Loading…
Reference in New Issue
Block a user