summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/model_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-25 09:23:19 +0200
committerPaul Buetow <paul@buetow.org>2026-02-25 09:23:19 +0200
commit1279ffb8f2efba54ff005cce91ba65c149cb1ee6 (patch)
tree102483e8d836501b3b935e0674d6608fbe9f4f1f /internal/tui/dashboard/model_test.go
parentb3625cc67c81b4c1bd654a9fcdaf624d76306b07 (diff)
Improve TUI layout and increase sparkline height
Diffstat (limited to 'internal/tui/dashboard/model_test.go')
-rw-r--r--internal/tui/dashboard/model_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/tui/dashboard/model_test.go b/internal/tui/dashboard/model_test.go
index b0ce933..29b698d 100644
--- a/internal/tui/dashboard/model_test.go
+++ b/internal/tui/dashboard/model_test.go
@@ -47,6 +47,12 @@ func TestKeySwitchingChangesActiveTab(t *testing.T) {
if model.activeTab != TabStream {
t.Fatalf("expected stream tab on key 7, got %v", model.activeTab)
}
+
+ next, _ = model.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'6'}})
+ model = next.(Model)
+ if model.activeTab != TabStream {
+ t.Fatalf("expected stream tab on key 6, got %v", model.activeTab)
+ }
}
func TestArrowAndViKeysCycleTabs(t *testing.T) {