← back to AsSeenInMovies
smoke: 4 assertions for /api/version (200, name, git sha, node)
d1d1f7a4821db109a3a79e25741563dc400ec0d0 · 2026-05-13 10:07:33 -0700 · SteveStudio2
Files touched
Diff
commit d1d1f7a4821db109a3a79e25741563dc400ec0d0
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Wed May 13 10:07:33 2026 -0700
smoke: 4 assertions for /api/version (200, name, git sha, node)
---
test/smoke.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/smoke.js b/test/smoke.js
index 73c25f7..3e1408c 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -117,6 +117,13 @@ function check(name, cond, hint = '') {
check('api/health: ok', /"ok":true/.test(r.body));
check('api/health: uptime_s', /"uptime_s":\d+/.test(r.body));
+ // 10c. /api/version — deploy fingerprint
+ r = await fetch('/api/version');
+ check('api/version: 200', r.status === 200);
+ check('api/version: name', /"name":"asseeninmovies"/.test(r.body));
+ check('api/version: git sha', /"git":"[a-f0-9]{4,}/.test(r.body));
+ check('api/version: node', /"node":"v\d+/.test(r.body));
+
// 11. /api/spotted/stats
r = await fetch('/api/spotted/stats');
check('api/spotted/stats: 200', r.status === 200);
← 3f7e5d7 api/version: deploy fingerprint endpoint (name, version, git
·
back to AsSeenInMovies
·
api/spotted/featured: N (default 6, max 24) verified spotted e3ecee0 →