18 lines
375 B
Go
18 lines
375 B
Go
package view_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/derailed/k9s/internal/client"
|
|
"github.com/derailed/k9s/internal/view"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestNSCleanser(t *testing.T) {
|
|
ns := view.NewNamespace(client.NewGVR("v1/namespaces"))
|
|
|
|
assert.Nil(t, ns.Init(makeCtx()))
|
|
assert.Equal(t, "Namespaces", ns.Name())
|
|
assert.Equal(t, 7, len(ns.Hints()))
|
|
}
|