k9s/internal/view/status_test.go

17 lines
364 B
Go

package view
import (
"testing"
"github.com/derailed/k9s/internal/config"
"github.com/stretchr/testify/assert"
)
func TestNewStatus(t *testing.T) {
defaults, _ := config.NewStyles("")
v := newStatusView(defaults)
v.update([]string{"blee", "duh"})
assert.Equal(t, "[black:aqua:b] blee [black:orange:b] duh \n", v.GetText(false))
}