k9s/internal/view/details_test.go

26 lines
568 B
Go

package view_test
// import (
// "testing"
// "github.com/derailed/k9s/internal/config"
// "github.com/derailed/k9s/internal/view"
// "github.com/stretchr/testify/assert"
// )
// func TestDetailsDecorateLines(t *testing.T) {
// buff := `
// I love blee
// blee is much [blue::]cooler [green::]than foo!
// `
// exp := `
// I love ["0"]blee[""]
// ["1"]blee[""] is much [blue::]cooler [green::]than foo!
// `
// app := view.NewApp(config.NewConfig(ks{}))
// v := view.NewDetails{app: app}
// assert.Equal(t, exp, v.decorateLines(buff, "blee"))
// }