mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
15 lines
340 B
Go
15 lines
340 B
Go
package helm
|
|
|
|
import (
|
|
"testing"
|
|
|
|
testingutils "github.com/argoproj/argo-cd/gitops-engine/pkg/utils/testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestWeight(t *testing.T) {
|
|
assert.Equal(t, 0, Weight(testingutils.NewPod()))
|
|
assert.Equal(t, 1, Weight(testingutils.Annotate(testingutils.NewPod(), "helm.sh/hook-weight", "1")))
|
|
}
|