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:
parent
7ca8c87941
commit
0b54f47c05
1 changed files with 0 additions and 10 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue