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.

494 B
Raw Blame
import { describe, expect, it } from 'vitest';
import { isStoragePoolLoading } from '@/features/storageBackups/storagePageStatus';

describe('storagePageStatus', () => {
  it('identifies pool-loading state canonically', () => {
    expect(isStoragePoolLoading(true, 'pools', 0)).toBe(true);
    expect(isStoragePoolLoading(true, 'disks', 0)).toBe(false);
    expect(isStoragePoolLoading(true, 'pools', 1)).toBe(false);
    expect(isStoragePoolLoading(false, 'pools', 0)).toBe(false);
  });
});