MCPcopy
hub / github.com/basecamp/once / TestRemove_SuccessNavigatesToDashboard

Function TestRemove_SuccessNavigatesToDashboard

internal/ui/remove_test.go:56–67  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

54}
55
56func TestRemove_SuccessNavigatesToDashboard(t *testing.T) {
57 m := newTestRemove()
58
59 _, cmd := updateRemove(m, removeFinishedMsg{err: nil})
60 require.NotNil(t, cmd)
61
62 msg := cmd()
63 navMsg, ok := msg.(NavigateToDashboardMsg)
64 require.True(t, ok, "expected NavigateToDashboardMsg, got %T", msg)
65 assert.Empty(t, navMsg.AppName)
66 assert.True(t, navMsg.AllowEmpty)
67}
68
69func TestRemove_ErrorShowsErrorAndReturnsToConfirmation(t *testing.T) {
70 m := newTestRemove()

Callers

nothing calls this directly

Calls 2

newTestRemoveFunction · 0.85
updateRemoveFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…