mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
fix(help): fix tests
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/charmbracelet/bubbles/v2/key"
|
"github.com/charmbracelet/bubbles/v2/key"
|
||||||
|
"github.com/charmbracelet/x/ansi"
|
||||||
"github.com/charmbracelet/x/exp/golden"
|
"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) {
|
t.Run(fmt.Sprintf("full help %d width", w), func(t *testing.T) {
|
||||||
m.Width = w
|
m.Width = w
|
||||||
s := m.FullHelpView(kb)
|
s := m.FullHelpView(kb)
|
||||||
|
s = ansi.Strip(s)
|
||||||
golden.RequireEqual(t, []byte(s))
|
golden.RequireEqual(t, []byte(s))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user