23 lines
435 B
Go
23 lines
435 B
Go
// SPDX-License-Identifier: Apache-2.0
|
|
// Copyright Authors of K9s
|
|
|
|
package ui_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/derailed/k9s/internal/config"
|
|
"github.com/derailed/k9s/internal/ui"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestNewSplash(t *testing.T) {
|
|
s := ui.NewSplash(config.NewStyles(), "bozo")
|
|
|
|
x, y, w, h := s.GetRect()
|
|
assert.Equal(t, 0, x)
|
|
assert.Equal(t, 0, y)
|
|
assert.Equal(t, 15, w)
|
|
assert.Equal(t, 10, h)
|
|
}
|