k9s/internal/views/dp_test.go

17 lines
352 B
Go

package views
import (
"testing"
"github.com/derailed/k9s/internal/config"
"github.com/derailed/k9s/internal/resource"
"github.com/stretchr/testify/assert"
)
func TestDeployView(t *testing.T) {
l := resource.NewDeploymentList(nil, "fred")
v := newDeployView("blee", NewApp(config.NewConfig(ks{})), l)
assert.Equal(t, "blee", v.getTitle())
}