diff --git a/help/help_test.go b/help/help_test.go index ee1f7e6..9214e0f 100644 --- a/help/help_test.go +++ b/help/help_test.go @@ -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)) }) }