k9s/internal/view/dir_test.go

17 lines
291 B
Go

package view_test
import (
"testing"
"github.com/derailed/k9s/internal/view"
"github.com/stretchr/testify/assert"
)
func TestDir(t *testing.T) {
v := view.NewDir("/fred")
assert.Nil(t, v.Init(makeCtx()))
assert.Equal(t, "Directory", v.Name())
assert.Equal(t, 7, len(v.Hints()))
}