Skip to content

Commit 1874f69

Browse files
committed
test(cache): expect prerender seed timestamps
1 parent db209ee commit 1874f69

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

tests/seed-cache.test.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,18 @@ describe("seedMemoryCacheFromPrerender", () => {
451451
"_N_T_/isr/page",
452452
];
453453
expect(contexts).toEqual([
454-
{ cacheControl: { revalidate: 60, expire: 300 }, revalidate: 60, tags: expectedTags },
455-
{ cacheControl: { revalidate: 60, expire: 300 }, revalidate: 60, tags: expectedTags },
454+
{
455+
cacheControl: { revalidate: 60, expire: 300 },
456+
revalidate: 60,
457+
tags: expectedTags,
458+
timestamp: expect.any(Number),
459+
},
460+
{
461+
cacheControl: { revalidate: 60, expire: 300 },
462+
revalidate: 60,
463+
tags: expectedTags,
464+
timestamp: expect.any(Number),
465+
},
456466
]);
457467
});
458468

0 commit comments

Comments
 (0)