fix(test): pin news morning preview clock to the fixture date
Memind CI / Test, build, and release guards (push) Has been cancelled

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 <cursoragent@cursor.com>
This commit is contained in:
John
2026-09-12 09:38:48 +08:00
parent 06ba9e8bb7
commit e8412adde9
+1 -1
View File
@@ -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');
});