From 814d75d7413005e2c4c8647dd8f296f484102ae8 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Wed, 25 Dec 2024 22:34:24 +0100 Subject: [PATCH] update test --- ...-cache-node-data-for-segment-path.test.tsx | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/packages/next/src/client/components/router-reducer/clear-cache-node-data-for-segment-path.test.tsx b/packages/next/src/client/components/router-reducer/clear-cache-node-data-for-segment-path.test.tsx index eaca8d93c7c38..c8f314d8664bf 100644 --- a/packages/next/src/client/components/router-reducer/clear-cache-node-data-for-segment-path.test.tsx +++ b/packages/next/src/client/components/router-reducer/clear-cache-node-data-for-segment-path.test.tsx @@ -71,28 +71,19 @@ describe('clearCacheNodeDataForSegmentPath', () => { expect(cache).toMatchInlineSnapshot(` { - "head": [ - null, - null, - ], + "head": null, "lazyData": null, "loading": null, "parallelRoutes": Map { "children" => Map { "linking" => { - "head": [ - null, - null, - ], + "head": null, "lazyData": null, "loading": null, "parallelRoutes": Map { "children" => Map { "" => { - "head": [ - null, - null, - ], + "head": null, "lazyData": null, "loading": null, "parallelRoutes": Map {}, @@ -111,10 +102,7 @@ describe('clearCacheNodeDataForSegmentPath', () => { , }, "dashboard" => { - "head": [ - null, - null, - ], + "head": null, "lazyData": null, "loading": null, "parallelRoutes": Map {},