silverwolf-x/project / packages /next /src /client /components /router-reducer /compute-changed-path.test.ts
silverwolf-x's picture
download
raw
1.5 kB
import { computeChangedPath } from './compute-changed-path'
import { PrefetchHint } from '../../../shared/lib/app-router-types'
describe('computeChangedPath', () => {
it('should return the correct path', () => {
expect(
computeChangedPath(
[
'',
{
children: [
'(marketing)',
{
children: ['__PAGE__', {}],
modal: [
'(...)stats',
{
children: [
['key', 'github', 'd', null],
{
children: ['__PAGE__', {}],
},
],
},
],
},
],
},
undefined,
undefined,
PrefetchHint.IsRootLayout,
],
[
'',
{
children: [
'(marketing)',
{
children: ['__PAGE__', {}],
modal: [
'(...)stats',
{
children: [
['key', 'github', 'd', null],
{
children: ['__PAGE__', {}],
},
],
},
],
},
],
},
undefined,
undefined,
PrefetchHint.IsRootLayout,
]
)
).toBe('/')
})
})

Xet Storage Details

Size:
1.5 kB
·
Xet hash:
1a7ef1c76dc277509cf0ef193f3462bc5d53c1c13472e5e2cc15396ed55ed513

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.