Add missing test util method to bottombar
MODIFY
ui/components/bottombar_test.go
ui/components/bottombar_test.go
@@ -55,3 +55,10 @@ func TestBottomBar(t *testing.T) {
bottomBar.SetRect(0, 0, width, 0)
bottomBar.Draw(simScreen)
}
+
+func expectCell(expected rune, column, row int, screen tcell.SimulationScreen, t *testing.T) {
+ cell, _, _, _ := screen.GetContent(column, row)
+ if cell != expected {
+ t.Errorf("Cell missmatch. Was '%c' instead of '%c'.", cell, expected)
+ }
+}

Add missing test util method to bottombar