18 lines
398 B
Go
18 lines
398 B
Go
package render_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/derailed/k9s/internal/render"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestEndpointsRender(t *testing.T) {
|
|
c := render.Endpoints{}
|
|
r := render.NewRow(4)
|
|
|
|
assert.NoError(t, c.Render(load(t, "ep"), "", &r))
|
|
assert.Equal(t, "default/dictionary1", r.ID)
|
|
assert.Equal(t, render.Fields{"default", "dictionary1", "<none>"}, r.Fields[:3])
|
|
}
|