mirror of
https://github.com/gotify/server.git
synced 2026-05-08 06:22:16 +08:00
16 lines
275 B
Go
16 lines
275 B
Go
package test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestTokenGeneration(t *testing.T) {
|
|
mockTokenFunc := Tokens("a", "b", "c")
|
|
|
|
for _, expected := range []string{"a", "b", "c", "a", "b", "c"} {
|
|
assert.Equal(t, expected, mockTokenFunc())
|
|
}
|
|
}
|