Repository navigation
VER RESULT ROUTE
github-actions[bot] edited this page Jul 25, 2026
·
21 revisions
- ID:
VER-RESULT-ROUTE - Type:
verification - Verifies: REQ-VERIFICATION-SCORING, REQ-SSR-STAGE-FLOW, REQ-SESSION-STATE
Covers the HTTP endpoint and logic of the final test results page against REQ-VERIFICATION-SCORING, REQ-SSR-STAGE-FLOW, and REQ-SESSION-STATE.
-
routes/result.tsx— implements Hono routes for GET/result, rendering the final results page with the computed score and truthfulness.
-
tests/result_route_test.ts(deno test+ Hono app.request):- GET /result redirects to /stage/1 when no session cookie;
- GET /result redirects to /stage/2 when no result in session;
- GET /result renders score and truthfulness;
- GET /result renders a link to restart.
- Result display — GET request returns server-rendered HTML showing the calculated final score and truthfulness metrics.
-
GET/POST/302 flow — GETs without valid session states or completed results
redirect to the appropriate initial stages (
/stage/1or/stage/2).