Fix brace imbalance + orphaned budget query stub in controlplane-api.test.ts (Sam & Hermes)

Removed leftover 'if (params?.[0]) { }' orphan block from
budget query handler removal. Brace balance restored.
This commit is contained in:
123kupola 2026-05-27 01:47:45 +02:00
parent 7ca8c87941
commit 0b54f47c05

View file

@ -175,9 +175,6 @@ function defaultMockQuery(
return { rows: agents };
}
// budget queries removed
if (params?.[0]) {
}
}
if (/SELECT.*FROM agent_activity/i.test(sql)) return { rows: [] };
if (/UPDATE tasks.*RETURNING/i.test(sql)) {
const taskId = params?.[1];
@ -405,13 +402,6 @@ describe('Control Plane HTTP API — contract tests', () => {
expect(res.body.agents[0]).toHaveProperty('id');
expect(res.body.agents[0]).toHaveProperty('role');
});
const res = await makeRequest(
handler,
'GET',
'/api/controlplane/state',
undefined,
validAuth,
);
it('returns 401 without Authorization header', async () => {
const { handler } = await setup();