tui: implement history navigation state initialization
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user