(t *testing.T)
| 126 | } |
| 127 | |
| 128 | func TestDashboard_ActionsMenuRemove(t *testing.T) { |
| 129 | d := testDashboard(1) |
| 130 | d.width = 80 |
| 131 | d.height = 40 |
| 132 | d.updateViewportSize() |
| 133 | d.rebuildViewportContent() |
| 134 | |
| 135 | _, cmd := updateDashboard(d, ActionsMenuSelectMsg{app: d.apps[0], action: ActionsMenuRemove}) |
| 136 | require.NotNil(t, cmd) |
| 137 | |
| 138 | msg := cmd() |
| 139 | navMsg, ok := msg.(NavigateToRemoveMsg) |
| 140 | require.True(t, ok, "expected NavigateToRemoveMsg, got %T", msg) |
| 141 | assert.Equal(t, d.apps[0], navMsg.App) |
| 142 | } |
| 143 | |
| 144 | func TestDashboard_OldStartStopKeyRemoved(t *testing.T) { |
| 145 | d := testDashboard(1) |
nothing calls this directly
no test coverage detected
searching dependent graphs…