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.

Add coverage for the Docker update alerts thresholds presenter

rcourtman052ba40fd473
diff --git a/frontend-modern/src/utils/__tests__/alertThresholdsPresentation.branchcov0718.test.ts b/frontend-modern/src/utils/__tests__/alertThresholdsPresentation.branchcov0718.test.ts
new file mode 100644
index 0000000000..d8b75a87f1
--- /dev/null
+++ b/frontend-modern/src/utils/__tests__/alertThresholdsPresentation.branchcov0718.test.ts
@@ -0,0 +1,23 @@
+import { describe, expect, it } from 'vitest';
+import {
+ ALERT_THRESHOLDS_DOCKER_UPDATES_TITLE,
+ ALERT_THRESHOLDS_DOCKER_UPDATES_DESCRIPTION,
+ ALERT_THRESHOLDS_DOCKER_UPDATES_TOGGLE_LABEL,
+ ALERT_THRESHOLDS_DOCKER_UPDATES_TOGGLE_DESCRIPTION,
+ ALERT_THRESHOLDS_DOCKER_UPDATES_DELAY_LABEL,
+ ALERT_THRESHOLDS_DOCKER_UPDATES_DELAY_DESCRIPTION,
+ getAlertThresholdsDockerUpdatePresentation,
+} from '../alertThresholdsPresentation';
+
+describe('alertThresholdsPresentation.branchcov0718', () => {
+ it('wires getAlertThresholdsDockerUpdatePresentation to the canonical DOCKER_UPDATES constants', () => {
+ expect(getAlertThresholdsDockerUpdatePresentation()).toEqual({
+ title: ALERT_THRESHOLDS_DOCKER_UPDATES_TITLE,
+ description: ALERT_THRESHOLDS_DOCKER_UPDATES_DESCRIPTION,
+ toggleLabel: ALERT_THRESHOLDS_DOCKER_UPDATES_TOGGLE_LABEL,
+ toggleDescription: ALERT_THRESHOLDS_DOCKER_UPDATES_TOGGLE_DESCRIPTION,
+ delayLabel: ALERT_THRESHOLDS_DOCKER_UPDATES_DELAY_LABEL,
+ delayDescription: ALERT_THRESHOLDS_DOCKER_UPDATES_DELAY_DESCRIPTION,
+ });
+ });
+});