mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 21:02:12 +03:00
16 tests covering all 5 endpoints: - GET /agent-skills: 42 total, category/area filters, invalid category → 400 - GET /agent-skills/[id]: found api+cli skills, unknown → 404 - GET /agent-skills/[id]/raw: unknown → 404, valid → 200/502/500 (network-tolerant) - GET /agent-skills/coverage: SkillCoverage shape (api.total=22, cli.total=20) - POST /generate: no auth → 401/403, invalid body → 400, no generator → 503 Hard Rule #12 verified explicitly in every error case: error.message must not match /\bat \/|\bat file:\/\// (no stack trace exposure). Final test collects all error paths and asserts sanitization in a single sweep.