From 36e653d69591b84834469cef3cf304be3beb4904 Mon Sep 17 00:00:00 2001 From: Kev Date: Fri, 17 Jul 2026 15:57:17 -0400 Subject: [PATCH] Fix compliancePages test: articles are PUBLISHED now (item 8), not draft MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test locked the old draft/unwired state; item 8 intentionally published the 5 articles to /blog with real dates. Updated the assertion to the new published shape (title + real date + status: published). This was a tests-before-commit miss on the item-8 push (3b7a1f5) — fixed forward. Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/unit/compliancePages.test.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/unit/compliancePages.test.js b/tests/unit/compliancePages.test.js index 19285cf..071fa51 100644 --- a/tests/unit/compliancePages.test.js +++ b/tests/unit/compliancePages.test.js @@ -159,11 +159,15 @@ describe('S2 — seed articles + Ghost runbook', () => { 'content/articles/how-streaks-lie.md', ]; - it.each(ARTICLES)('%s exists with draft front matter', (rel) => { + // Truth-Everywhere Part 2 (item 8) — these 5 are now PUBLISHED to /blog with + // real dates (was draft/unwired). Lock the published shape: title + a real + // date + published status (drafts would be filtered out of the public index). + it.each(ARTICLES)('%s is published with a real date', (rel) => { const src = readRoot(rel); expect(src.startsWith('---')).toBe(true); expect(src).toContain('title:'); - expect(src).toContain('status: draft'); + expect(src).toContain('status: published'); + expect(src).toMatch(/date:\s*'?\d{4}-\d{2}-\d{2}'?/); }); it.each(ARTICLES)('%s obeys VOICE v1.1 — zero exclamation points', (rel) => {