Skip to content

Commit

Permalink
fix(help): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Oct 24, 2024
1 parent 1efec15 commit 9f3b67a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions help/help_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"testing"

"github.com/charmbracelet/bubbles/v2/key"
"github.com/charmbracelet/x/ansi"
"github.com/charmbracelet/x/exp/golden"
)

Expand All @@ -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))
})
}
Expand Down

0 comments on commit 9f3b67a

Please sign in to comment.