summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/files_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/tui/dashboard/files_test.go')
-rw-r--r--internal/tui/dashboard/files_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/tui/dashboard/files_test.go b/internal/tui/dashboard/files_test.go
index b0a5dbf..6d73b14 100644
--- a/internal/tui/dashboard/files_test.go
+++ b/internal/tui/dashboard/files_test.go
@@ -49,3 +49,10 @@ func TestTruncatePathMiddle(t *testing.T) {
t.Fatalf("expected head and tail preservation, got %q", got)
}
}
+
+func TestFilePathWidthExpandsOnWideTerminal(t *testing.T) {
+ got := filePathWidth(180)
+ if got <= 80 {
+ t.Fatalf("expected wide path column to use remaining space, got %d", got)
+ }
+}