fix(test): pin news morning preview clock to the fixture date
Memind CI / Test, build, and release guards (push) Has been cancelled
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:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user