diff options
Diffstat (limited to 'internal/tui/timer_test.go')
| -rw-r--r-- | internal/tui/timer_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/tui/timer_test.go b/internal/tui/timer_test.go index 6263c09..3eb39b2 100644 --- a/internal/tui/timer_test.go +++ b/internal/tui/timer_test.go @@ -21,19 +21,19 @@ func TestTimerModelToggleWorkLogin(t *testing.T) { t.Fatalf("NewTimerModel() error = %v", err) } - if !model.workEnabled { + if !model.work.enabled { t.Fatal("work integration should be enabled") } modelAny, _ := model.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'l'}}) model = modelAny.(TimerModel) - if !model.workLoggedIn { + if !model.work.loggedIn { t.Fatal("work should be logged in after first l") } modelAny, _ = model.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'l'}}) model = modelAny.(TimerModel) - if model.workLoggedIn { + if model.work.loggedIn { t.Fatal("work should be logged out after second l") } @@ -75,8 +75,8 @@ func TestTimerModelWorkToggleWhenDisabled(t *testing.T) { modelAny, _ := model.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'l'}}) model = modelAny.(TimerModel) - if model.workStatus != "work integration disabled" { - t.Fatalf("workStatus = %q, want work integration disabled", model.workStatus) + if model.work.status != "work integration disabled" { + t.Fatalf("workStatus = %q, want work integration disabled", model.work.status) } } |
