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

Function TestRemove_ViewShowsConfirmation

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

Source from the content-addressed store, hash-verified

12)
13
14func TestRemove_ViewShowsConfirmation(t *testing.T) {
15 m := newTestRemove()
16 m, _ = updateRemove(m, tea.WindowSizeMsg{Width: 80, Height: 24})
17
18 view := m.View()
19 assert.Contains(t, view, "Remove application and data?")
20 assert.Contains(t, view, "Remove")
21 assert.Contains(t, view, "Cancel")
22}
23
24func TestRemove_CancelNavigatesToDashboard(t *testing.T) {
25 m := newTestRemove()

Callers

nothing calls this directly

Calls 3

newTestRemoveFunction · 0.85
updateRemoveFunction · 0.85
ViewMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…