test(dashboard): route F5 summary query mocks explicitly
This commit is contained in:
@@ -21,8 +21,9 @@ test('DashboardService returns F5 operational counts and inspector activity cons
|
||||
reportsWorking: '1', reportsOfficialized: '2', sealedActsWithoutReport: '4',
|
||||
}];
|
||||
}
|
||||
if (sql.includes('FROM inspection_findings finding')) return [];
|
||||
return recent;
|
||||
if (sql.includes('FROM audit_events event')) return recent;
|
||||
if (sql.includes('next_control_on AS "nextControlOn"')) return [];
|
||||
throw new Error(`Unexpected DashboardService query in test: ${sql}`);
|
||||
},
|
||||
};
|
||||
const dataSource = {
|
||||
|
||||
Reference in New Issue
Block a user