cli/pkg/cli/render_test.go
Virgil 81be3b701e fix(cli): theme-aware semantic glyphs
Keep section headers, check skips, and layout separators aligned with the active glyph theme.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 12:31:44 +00:00

30 lines
536 B
Go

package cli
import (
"strings"
"testing"
"github.com/stretchr/testify/assert"
)
func TestCompositeRender_GlyphTheme(t *testing.T) {
prevStyle := currentRenderStyle
t.Cleanup(func() {
currentRenderStyle = prevStyle
})
restoreThemeAndColors(t)
UseASCII()
c := Layout("HCF")
c.H("header").C("content").F("footer")
UseRenderSimple()
out := c.String()
assert.Contains(t, out, strings.Repeat("-", 40))
UseRenderBoxed()
out = c.String()
assert.Contains(t, out, "+")
assert.Contains(t, out, strings.Repeat("-", 40))
}