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

Function TestRemove_EscNavigatesToDashboard

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

Source from the content-addressed store, hash-verified

34}
35
36func TestRemove_EscNavigatesToDashboard(t *testing.T) {
37 m := newTestRemove()
38
39 _, cmd := updateRemove(m, keyPressMsg("esc"))
40 require.NotNil(t, cmd)
41
42 msg := cmd()
43 navMsg, ok := msg.(NavigateToDashboardMsg)
44 require.True(t, ok, "expected NavigateToDashboardMsg, got %T", msg)
45 assert.Equal(t, "test-app", navMsg.AppName)
46}
47
48func TestRemove_ConfirmStartsRemoval(t *testing.T) {
49 m := newTestRemove()

Callers

nothing calls this directly

Calls 4

newTestRemoveFunction · 0.85
updateRemoveFunction · 0.85
keyPressMsgFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…