cloudflared-mirror/cmd/cloudflared/tunnel/config_test.go

14 lines
222 B
Go
Raw Normal View History

package tunnel
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestDedup(t *testing.T) {
expected := []string{"a", "b"}
actual := dedup([]string{"a", "b", "a"})
require.Equal(t, expected, actual)
}