Fix compliancePages test: articles are PUBLISHED now (item 8), not draft

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) <noreply@anthropic.com>
This commit is contained in:
Kev
2026-07-17 15:57:17 -04:00
parent 3b7a1f59bc
commit 36e653d695
+6 -2
View File
@@ -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) => {