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.

721 B
Raw Blame
import { describe, expect, it } from 'vitest';
import { getEmptyStatePresentation } from '@/utils/emptyStatePresentation';

describe('emptyStatePresentation', () => {
  it('returns canonical danger presentation', () => {
    expect(getEmptyStatePresentation('danger')).toEqual({
      iconClass: 'bg-red-50 dark:bg-red-900/25 text-red-500',
      titleClass: 'text-red-700 dark:text-red-300',
      descriptionClass: 'text-red-600 dark:text-red-300',
    });
  });

  it('returns canonical default presentation', () => {
    expect(getEmptyStatePresentation('default')).toEqual({
      iconClass: 'bg-surface-alt text-muted',
      titleClass: 'text-base-content',
      descriptionClass: 'text-muted',
    });
  });
});