From 9f3b67a0ef21eef2cb277e442f38582e71b8bfab Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Thu, 24 Oct 2024 16:24:47 -0400 Subject: [PATCH] fix(help): fix tests --- help/help_test.go | 2 ++ 1 file changed, 2 insertions(+) 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)) }) }