Remove dead empty-iterable guardrail loops from contract tests

This commit is contained in:
rcourtman
2026-07-09 21:03:16 +01:00
parent 0d89be1c91
commit 958c6dfc6e
2 changed files with 0 additions and 19 deletions
@@ -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', () => {
@@ -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');