← back to AsSeenInMovies
asseeninmovies: smoke — add /api discovery doc check (+2 assertions). 52/52.
a471a717bef427b567e6dbd11b0f21130049df0e · 2026-05-12 20:08:44 -0700 · SteveStudio2
Files touched
Diff
commit a471a717bef427b567e6dbd11b0f21130049df0e
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Tue May 12 20:08:44 2026 -0700
asseeninmovies: smoke — add /api discovery doc check (+2 assertions). 52/52.
---
test/smoke.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/test/smoke.js b/test/smoke.js
index d80d976..fb35bb0 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -98,7 +98,12 @@ function check(name, cond, hint = '') {
r = await fetch('/search?q=hotel');
check('search?q: 200', r.status === 200);
- // 10. /api/health
+ // 10a. /api — discovery doc
+ r = await fetch('/api');
+ check('api: 200', r.status === 200);
+ check('api: discovery doc', /endpoints/.test(r.body) && /AsSeenInMovies API/.test(r.body));
+
+ // 10b. /api/health
r = await fetch('/api/health');
check('api/health: 200', r.status === 200);
check('api/health: ok', /"ok":true/.test(r.body));
← ea5c081 asseeninmovies: GET /api — JSON index of every public API en
·
back to AsSeenInMovies
·
asseeninmovies: footer links — add Privacy/Terms/API to home 018b503 →