fix(help): fix tests

This commit is contained in:
Christian Rocha
2024-10-24 16:44:30 -04:00
parent 1efec1505f
commit 9f3b67a0ef
+2
View File
@@ -5,6 +5,7 @@ import (
"testing"
"github.com/charmbracelet/bubbles/v2/key"
"github.com/charmbracelet/x/ansi"
"github.com/charmbracelet/x/exp/golden"
)
@@ -31,6 +32,7 @@ func TestFullHelp(t *testing.T) {
t.Run(fmt.Sprintf("full help %d width", w), func(t *testing.T) {
m.Width = w
s := m.FullHelpView(kb)
s = ansi.Strip(s)
golden.RequireEqual(t, []byte(s))
})
}