tui: implement history navigation state initialization

This commit is contained in:
Luxferre
2026-03-22 18:29:36 +02:00
parent 92cf1dfada
commit ca2b2eb558
2 changed files with 13 additions and 3 deletions
+7
View File
@@ -32,6 +32,13 @@ func TestInitialModel(t *testing.T) {
}
}
func TestHistoryStateInitialization(t *testing.T) {
m := initialModel()
if m.historyIndex != -1 {
t.Errorf("expected historyIndex to be -1, got %d", m.historyIndex)
}
}
func TestModelUpdate(t *testing.T) {
m := initialModel()
m.ready = true