Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

style(alerts): format incident timeline regression

pulse-triage[bot]701362ac25ef
diff --git a/frontend-modern/src/features/alerts/__tests__/useAlertIncidentTimelineState.test.tsx b/frontend-modern/src/features/alerts/__tests__/useAlertIncidentTimelineState.test.tsx
index d186a0e4ce..6ff8a0c289 100644
--- a/frontend-modern/src/features/alerts/__tests__/useAlertIncidentTimelineState.test.tsx
+++ b/frontend-modern/src/features/alerts/__tests__/useAlertIncidentTimelineState.test.tsx
@@ -43,7 +43,12 @@ describe('useAlertIncidentTimelineState', () => {
const newIncident = { id: 'incident-new', events: [] } as unknown as Timeline;
let finishOld!: (timeline: Timeline) => void;
vi.mocked(AlertsAPI.getIncidentTimeline)
- .mockImplementationOnce(() => new Promise<Timeline>((resolve) => { finishOld = resolve; }))
+ .mockImplementationOnce(
+ () =>
+ new Promise<Timeline>((resolve) => {
+ finishOld = resolve;
+ }),
+ )
.mockResolvedValueOnce(newIncident)
.mockResolvedValueOnce(oldIncident);
vi.mocked(AlertsAPI.addIncidentNote).mockResolvedValue(undefined as any);
@@ -65,7 +70,9 @@ describe('useAlertIncidentTimelineState', () => {
await result.saveIncidentNote('old-row', 'alert-1', oldStart);
expect(AlertsAPI.addIncidentNote).toHaveBeenCalledExactlyOnceWith({
- alertIdentifier: 'alert-1', incidentId: 'incident-old', note: 'historical note',
+ alertIdentifier: 'alert-1',
+ incidentId: 'incident-old',
+ note: 'historical note',
});
expect(AlertsAPI.getIncidentTimeline).toHaveBeenNthCalledWith(3, 'alert-1', oldStart);
expect(result.incidentNoteDrafts()['old-row']).toBe('');