diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-27 11:43:20 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-27 11:43:20 +0200 |
| commit | c8c57f0d5821ae0542cb613c87e6ed2ea66e1e0a (patch) | |
| tree | 60286e6701450d8951a3d38eeef5326e3fe62b27 /internal/askcli/formatter_test.go | |
| parent | 2d35eeb40eee8beed7163f41afab279bce2976ef (diff) | |
Rename ask table headers
Diffstat (limited to 'internal/askcli/formatter_test.go')
| -rw-r--r-- | internal/askcli/formatter_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/askcli/formatter_test.go b/internal/askcli/formatter_test.go index 1f36b6b..2921555 100644 --- a/internal/askcli/formatter_test.go +++ b/internal/askcli/formatter_test.go @@ -18,11 +18,11 @@ func TestFormatTaskList(t *testing.T) { if len(lines) < 3 { t.Fatalf("FormatTaskList produced too few lines: %d", len(lines)) } - if !strings.Contains(lines[0], "ID") || !strings.Contains(lines[0], "Prio") { - t.Fatalf("header missing ID or Prio column: %s", lines[0]) + if !strings.Contains(lines[0], "ID") || !strings.Contains(lines[0], "Pro") { + t.Fatalf("header missing ID or Pro column: %s", lines[0]) } if strings.Contains(lines[0], "Priority") { - t.Fatalf("header should use compact Prio label: %s", lines[0]) + t.Fatalf("header should use compact Pro label: %s", lines[0]) } if !strings.Contains(lines[0], "Started") { t.Fatalf("header missing Started column: %s", lines[0]) @@ -64,8 +64,8 @@ func TestFormatTaskList_AlignsHeaderAndSeparator(t *testing.T) { widths := taskListWidthsFor(tasks, aliases, 0) wantHeader := fmt.Sprintf("%-*s | %-*s | %-*s | %-*s | %-*s | %-*s | %-*s", - widths.Urgency, "Urgency", - widths.Priority, "Prio", + widths.Urgency, "Urg", + widths.Priority, "Pro", widths.ID, "ID", widths.Status, "Status", widths.Started, "Started", |
