[object Object]

← back to Stars of Design

smoke: assert /api/version Cache-Control no-store

d45d22b39ea48969bbe70c606ad4de60623e6cb4 · 2026-05-13 10:18:42 -0700 · Steve Abrams

Files touched

Diff

commit d45d22b39ea48969bbe70c606ad4de60623e6cb4
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed May 13 10:18:42 2026 -0700

    smoke: assert /api/version Cache-Control no-store
---
 test/smoke.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/smoke.js b/test/smoke.js
index e9e5090..156dfa9 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -112,6 +112,7 @@ function check(name, cond, hint = '') {
   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));
+  check('api/version: no-store',       (r.headers['cache-control'] || '').includes('no-store'));
 
   // 8b. /api/stats
   r = await fetch('/api/stats');

← fd7960e smoke: 2 assertions for branded 404 page  ·  back to Stars of Design  ·  smoke: assert /api/version git !== 'unknown' 3f74a86 →