diff options
| author | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-22 16:39:56 +0300 |
|---|---|---|
| committer | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-22 16:39:56 +0300 |
| commit | dc1a6e83669dd22be4542833970d3251741ba1f3 (patch) | |
| tree | e2585f906485e89f6d4417a5d1d3d04f9c442ce4 /internal/ui/table_test.go | |
| parent | e42bb79ed74cb975db0c4b8128b9014f0f6acf33 (diff) | |
Fix add task hotkey
Diffstat (limited to 'internal/ui/table_test.go')
| -rw-r--r-- | internal/ui/table_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/ui/table_test.go b/internal/ui/table_test.go index f378973..365180c 100644 --- a/internal/ui/table_test.go +++ b/internal/ui/table_test.go @@ -476,7 +476,7 @@ func TestAddHotkey(t *testing.T) { mv, _ := m.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'+'}}) m = mv.(Model) - for _, r := range "task" { + for _, r := range "foo due:today" { mv, _ = m.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{r}}) m = mv.(Model) } @@ -488,7 +488,7 @@ func TestAddHotkey(t *testing.T) { t.Fatalf("read add: %v", err) } - if strings.TrimSpace(string(data)) != "add task" { + if strings.TrimSpace(string(data)) != "add foo due:today" { t.Fatalf("add not called: %q", data) } } |
