(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestDashboardPanelSelectedHasIndicator(t *testing.T) { |
| 51 | panel := testPanel(true) |
| 52 | view := panel.View(true, false, true, 80, DashboardScales{}) |
| 53 | |
| 54 | // Selected panels have the indicator character |
| 55 | assert.Contains(t, view, "▐") |
| 56 | assert.Contains(t, view, "▗") |
| 57 | assert.Contains(t, view, "▝") |
| 58 | } |
| 59 | |
| 60 | func TestDashboardPanelNotSelectedNoIndicator(t *testing.T) { |
| 61 | panel := testPanel(true) |