mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-05 04:36:07 +00:00
fix(help): fix tests
This commit is contained in:
@@ -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))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user