Some checks failed
Build docker and publish / build (20.15.1) (push) Failing after 7m37s
13 lines
265 B
Go
13 lines
265 B
Go
package node
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestNormalizeNodeTags(t *testing.T) {
|
|
tags := normalizeNodeTags([]string{"美国", " 日本 ", "", "美国", " ", "日本"})
|
|
require.Equal(t, []string{"美国", "日本"}, tags)
|
|
}
|