k9s/internal/views/app_test.go

17 lines
290 B
Go

package views
import (
"testing"
"github.com/derailed/k9s/internal/config"
"github.com/stretchr/testify/assert"
)
func TestNewApp(t *testing.T) {
a := NewApp(config.NewConfig(ks{}))
a.Init("blee", 10)
assert.Equal(t, 11, len(a.GetActions()))
assert.Equal(t, false, a.HasSkins)
}