[object Object]

← back to Stars of Design

sod smoke +2 /sitemap.txt assertions. 52/52.

920bdd72f094938e3443340fc309fc98b6accc4b · 2026-05-13 07:52:35 -0700 · Steve Abrams

Files touched

Diff

commit 920bdd72f094938e3443340fc309fc98b6accc4b
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed May 13 07:52:35 2026 -0700

    sod smoke +2 /sitemap.txt assertions. 52/52.
---
 test/smoke.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/smoke.js b/test/smoke.js
index b9bbce1..88bba91 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -110,6 +110,9 @@ function check(name, cond, hint = '') {
   check('sitemap: urlset',             /<urlset/.test(r.body));
   check('sitemap: has /privacy',       /<loc>[^<]*\/privacy<\/loc>/.test(r.body));
   check('sitemap: has /terms',         /<loc>[^<]*\/terms<\/loc>/.test(r.body));
+  r = await fetch('/sitemap.txt');
+  check('sitemap.txt: 200',            r.status === 200);
+  check('sitemap.txt: has http URL',   /^https?:\/\//.test(r.body));
   r = await fetch('/robots.txt');
   check('robots: 200',                 r.status === 200);
   r = await fetch('/favicon.ico');

← 9136d4a sod GET /sitemap.txt — plain-text sitemap (Google+Bing suppo  ·  back to Stars of Design  ·  sod footer +/api link — matches asim. 52/52. f337110 →