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.

Remove dead empty-iterable guardrail loops from contract tests

rcourtman958c6dfc6ede
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index 48746a5b2a..827e068bf3 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -1354,16 +1354,6 @@ describe('shared primitive guardrails', () => {
expect(apiTokenManagerSource.match(/frame="flush"/g) ?? []).toHaveLength(1);
expect(rolesPanelSource.match(/frame="flush"/g) ?? []).toHaveLength(1);
expect(userAssignmentsPanelSource.match(/frame="flush"/g) ?? []).toHaveLength(1);
-
- for (const source of []) {
- expect(source).toContain("from '@/components/shared/Table'");
- expect(source).not.toContain('<table');
- expect(source).not.toContain('<thead');
- expect(source).not.toContain('<tbody');
- expect(source).not.toContain('<tr ');
- expect(source).not.toContain('<td ');
- expect(source).not.toContain('<th ');
- }
});
it('keeps chart visibility display actions on the shared toolbar toggle', () => {
diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
index a0b62dae85..9545575d55 100644
--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts
@@ -2684,15 +2684,6 @@ describe('frontend resource type boundaries', () => {
expect(storageDomainSource).toContain('export const getCephDisconnectedStatePresentation');
expect(storageDomainSource).toContain('export const getCephNoClustersStatePresentation');
expect(storageDomainSource).toContain('export const getCephPoolsSearchEmptyStatePresentation');
- for (const source of []) {
- expect(source).toContain("from '@/components/shared/Table'");
- expect(source).not.toContain('<table');
- expect(source).not.toContain('<thead');
- expect(source).not.toContain('<tbody');
- expect(source).not.toContain('<tr ');
- expect(source).not.toContain('<td ');
- expect(source).not.toContain('<th ');
- }
expect(alertHistoryTableSectionSource).toContain('AlertHistoryTableGroupRow');
expect(alertHistoryTableSectionSource).toContain('AlertHistoryTableAlertRow');
expect(alertHistoryTableAlertRowSource).toContain('getAlertHistoryStatusPresentation');