mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-04-05 00:08:49 +02:00
15 lines
263 B
Go
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)
|
|
}
|