fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker
2024-12-04 16:47:44 -03:00
parent f54c6d955f
commit 6eba26ae28
+1
View File
@@ -55,6 +55,7 @@ func TestStatusBarWithoutItems(t *testing.T) {
func TestCustomStatusBarItemName(t *testing.T) {
list := New([]Item{item("foo"), item("bar")}, itemDelegate{}, 10, 10)
list.SetStatusBarItemName("connection", "connections")
list.Styles.StatusEmpty = list.Styles.StatusEmpty.SetString("No connections.")
expected := "2 connections"
if !strings.Contains(list.statusView(), expected) {