From e8412adde98edeb2428b40d90587ab843cf7f54d Mon Sep 17 00:00:00 2001 From: John Date: Sat, 12 Sep 2026 09:38:48 +0800 Subject: [PATCH] fix(test): pin news morning preview clock to the fixture date previewToday() used the real clock, so the Sep 10 fixture failed on later calendar days and blocked Portal fast-release guards. Co-authored-by: Cursor --- wechat-news-morning-draft.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wechat-news-morning-draft.test.mjs b/wechat-news-morning-draft.test.mjs index 6953643..f70cc3e 100644 --- a/wechat-news-morning-draft.test.mjs +++ b/wechat-news-morning-draft.test.mjs @@ -189,7 +189,7 @@ test('getTodayStatus and previewToday require today dated page', async () => { assert.equal(status.page?.slug, 'daily-news-0911'); assert.equal(status.expectedSlug, 'daily-news-0911'); - const preview = await service.previewToday(); + const preview = await service.preview({ requireToday: true, now }); assert.equal(preview.page.isTodayPage, true); assert.equal(preview.page.slug, 'daily-news-0911'); });