k9s/internal/views/ds_test.go

17 lines
376 B
Go

package views
import (
"testing"
"github.com/derailed/k9s/internal/config"
"github.com/derailed/k9s/internal/resource"
"github.com/stretchr/testify/assert"
)
func TestDaemonSetView(t *testing.T) {
l := resource.NewDaemonSetList(nil, "fred")
v := newDaemonSetView("blee", "", NewApp(config.NewConfig(ks{})), l).(*daemonSetView)
assert.Equal(t, 10, len(v.hints()))
}