Files
argo-cd/util/hook/helm/weight_test.go
2019-09-30 15:04:13 -07:00

15 lines
263 B
Go

package helm
import (
"testing"
"github.com/stretchr/testify/assert"
. "github.com/argoproj/argo-cd/test"
)
func TestWeight(t *testing.T) {
assert.Equal(t, Weight(NewPod()), 0)
assert.Equal(t, Weight(Annotate(NewPod(), "helm.sh/hook-weight", "1")), 1)
}