github.com/argoproj/argo-cd/v3@v3.2.1/util/notification/expression/expr_test.go (about)

     1  package expression
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestExpr(t *testing.T) {
    10  	namespaces := []string{
    11  		"time",
    12  		"repo",
    13  		"strings",
    14  	}
    15  
    16  	for _, ns := range namespaces {
    17  		helpers := Spawn(nil, nil, nil)
    18  		_, hasNamespace := helpers[ns]
    19  		assert.True(t, hasNamespace)
    20  	}
    21  }