test(dashboard): route F5 summary query mocks explicitly

This commit is contained in:
2026-09-08 22:05:58 -03:00
parent 3752b78f58
commit ef781abaca
+3 -2
View File
@@ -21,8 +21,9 @@ test('DashboardService returns F5 operational counts and inspector activity cons
reportsWorking: '1', reportsOfficialized: '2', sealedActsWithoutReport: '4', reportsWorking: '1', reportsOfficialized: '2', sealedActsWithoutReport: '4',
}]; }];
} }
if (sql.includes('FROM inspection_findings finding')) return []; if (sql.includes('FROM audit_events event')) return recent;
return recent; if (sql.includes('next_control_on AS "nextControlOn"')) return [];
throw new Error(`Unexpected DashboardService query in test: ${sql}`);
}, },
}; };
const dataSource = { const dataSource = {