17 lines
368 B
Go
17 lines
368 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).(*deployView)
|
|
|
|
assert.Equal(t, 10, len(v.hints()))
|
|
}
|