test(coord): expand registry/api/reservation coverage

This commit is contained in:
ZenchantLive 2026-03-03 18:48:13 -08:00
parent c6f8149ba2
commit e16ddcb532
4 changed files with 141 additions and 28 deletions

View file

@ -65,3 +65,13 @@ test('GET /api/agents/reservations returns AGENT_NOT_FOUND for unknown agent', a
assert.equal(data.ok, false);
assert.equal(data.error?.code, 'AGENT_NOT_FOUND');
});
test('GET /api/agents/reservations without agent returns success payload', async () => {
const response = await getReservations(
new Request('http://localhost/api/agents/reservations'),
);
const data = await readJson(response);
assert.equal(response.status, 200);
assert.equal(data.ok, true);
assert.equal(data.command, 'agent status');
});