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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
import { describe, expect, it } from 'vitest';
import {
getAlertGroupingCardClass,
getAlertGroupingCheckboxClass,
} from '@/utils/alertGroupingPresentation';
describe('alertGroupingPresentation', () => {
it('returns the selected grouping card presentation', () => {
expect(getAlertGroupingCardClass(true)).toBe(
'relative flex items-center gap-2 rounded-md border-2 p-3 transition-all border-blue-500 bg-blue-50 shadow-xs dark:bg-blue-900/25',
);
});
it('returns the unselected grouping checkbox presentation', () => {
expect(getAlertGroupingCheckboxClass(false)).toBe(
'flex h-4 w-4 items-center justify-center rounded-sm border-2 border-border',
);
});
});