← back to Stars of Design
smoke: 2 assertions for branded 404 page
fd7960ed36b1ee4c9441a68caff96e940baf4ba7 · 2026-05-13 10:15:10 -0700 · Steve Abrams
Files touched
Diff
commit fd7960ed36b1ee4c9441a68caff96e940baf4ba7
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed May 13 10:15:10 2026 -0700
smoke: 2 assertions for branded 404 page
---
test/smoke.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test/smoke.js b/test/smoke.js
index 88768ba..e9e5090 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -170,6 +170,11 @@ function check(name, cond, hint = '') {
r = await fetch('/submit');
check('submit: 200', r.status === 200);
+ // 12. branded 404 — non-routed path returns HTML with brand name
+ r = await fetch('/nonexistent-path-smoke-test');
+ check('404: status 404', r.status === 404);
+ check('404: branded HTML', /Stars of Design/.test(r.body));
+
// Report — flags:
// --quiet : only print failures + tally (CI / cron)
// --json : emit a single JSON object (monitoring / dashboards)
← 95b38f5 smoke: 4 assertions for /api/version
·
back to Stars of Design
·
smoke: assert /api/version Cache-Control no-store d45d22b →