(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestDashboardPanelViewRunningApp(t *testing.T) { |
| 15 | panel := testPanel(true) |
| 16 | view := panel.View(false, false, true, 120, DashboardScales{}) |
| 17 | stripped := ansi.Strip(view) |
| 18 | |
| 19 | assert.Contains(t, stripped, "app.example.com") |
| 20 | assert.Contains(t, stripped, "running") |
| 21 | } |
| 22 | |
| 23 | func TestDashboardPanelViewStoppedApp(t *testing.T) { |
| 24 | panel := testPanel(false) |