← back to Stars of Design
smoke: 4 assertions for /api/version
95b38f5a1bc16abf47ec1bfc4d10e208fbabdee3 · 2026-05-13 10:07:38 -0700 · Steve Abrams
Files touched
Diff
commit 95b38f5a1bc16abf47ec1bfc4d10e208fbabdee3
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed May 13 10:07:38 2026 -0700
smoke: 4 assertions for /api/version
---
test/smoke.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/smoke.js b/test/smoke.js
index 66c2b50..88768ba 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -106,6 +106,13 @@ function check(name, cond, hint = '') {
check('api/health: uptime_s', /"uptime_s":\d+/.test(r.body));
check('api/health: counts.designers',/"designers":\d+/.test(r.body));
+ // 8a3. /api/version — deploy fingerprint
+ r = await fetch('/api/version');
+ check('api/version: 200', r.status === 200);
+ check('api/version: name', /"name":"starsofdesign"/.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));
+
// 8b. /api/stats
r = await fetch('/api/stats');
check('api/stats: 200', r.status === 200);
← 49fd5af api/version: deploy fingerprint endpoint (asim parity)
·
back to Stars of Design
·
smoke: 2 assertions for branded 404 page fd7960e →