sharded-gotify/test/token_test.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())
}
}