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

Function TestDashboard_EmptyStateShowsMessage

internal/ui/dashboard_test.go:212–219  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

210}
211
212func TestDashboard_EmptyStateShowsMessage(t *testing.T) {
213 d := testDashboard(0)
214 d, _ = updateDashboard(d, tea.WindowSizeMsg{Width: 80, Height: 24})
215
216 view := d.View()
217 assert.Contains(t, view, "There are no applications installed")
218 assert.Contains(t, view, "new app")
219}
220
221// Helpers
222

Callers

nothing calls this directly

Calls 3

testDashboardFunction · 0.85
updateDashboardFunction · 0.85
ViewMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…