From bab716a6a5931c211fad2f17ee2f67e8d182a7fc Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 5 Mar 2026 19:20:18 +0200 Subject: feat(tui): migrate Bubble Tea stack to charm.land v2 --- internal/tui/export/model_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/tui/export/model_test.go') diff --git a/internal/tui/export/model_test.go b/internal/tui/export/model_test.go index a97cd8b..2d47435 100644 --- a/internal/tui/export/model_test.go +++ b/internal/tui/export/model_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - tea "github.com/charmbracelet/bubbletea" + tea "charm.land/bubbletea/v2" ) func TestOpenAndClose(t *testing.T) { @@ -21,7 +21,7 @@ func TestOpenAndClose(t *testing.T) { func TestEnterEmitsRequest(t *testing.T) { m := NewModel().Open() - next, cmd := m.Update(tea.KeyMsg{Type: tea.KeyEnter}) + next, cmd := m.Update(tea.KeyPressMsg{Code: tea.KeyEnter}) if cmd == nil { t.Fatalf("expected request command on enter") } @@ -40,7 +40,7 @@ func TestEnterEmitsRequest(t *testing.T) { func TestCancelOptionCloses(t *testing.T) { m := NewModel().Open() m.selected = len(optionValues) - 1 - next, cmd := m.Update(tea.KeyMsg{Type: tea.KeyEnter}) + next, cmd := m.Update(tea.KeyPressMsg{Code: tea.KeyEnter}) if cmd != nil { t.Fatalf("expected no command when selecting cancel") } -- cgit v1.2.3