k9s/internal/view/dp_test.go

20 lines
403 B
Go

package view_test
import (
"fmt"
"testing"
"github.com/derailed/k9s/internal/client"
"github.com/derailed/k9s/internal/view"
"github.com/stretchr/testify/assert"
)
func TestDeploy(t *testing.T) {
v := view.NewDeploy(client.NewGVR("apps/v1/deployments"))
assert.Nil(t, v.Init(makeCtx()))
assert.Equal(t, "Deployments", v.Name())
fmt.Println(v.Hints())
assert.Equal(t, 14, len(v.Hints()))
}