Buckets:
silverwolf-x/project / packages /next /src /client /components /router-reducer /create-router-cache-key.test.ts
| import { createRouterCacheKey } from './create-router-cache-key' | |
| describe('createRouterCacheKey', () => { | |
| it('should support string segment', () => { | |
| expect(createRouterCacheKey('foo')).toEqual('foo') | |
| }) | |
| it('should support dynamic segment', () => { | |
| expect(createRouterCacheKey(['slug', 'hello-world', 'd', null])).toEqual( | |
| 'slug|hello-world|d' | |
| ) | |
| }) | |
| it('should support catch all segment', () => { | |
| expect( | |
| createRouterCacheKey(['slug', 'blog/hello-world', 'c', null]) | |
| ).toEqual('slug|blog/hello-world|c') | |
| }) | |
| }) | |
Xet Storage Details
- Size:
- 556 Bytes
- Xet hash:
- 35df9227ed2eb8b772d213dcd344b53a6fe520b019be17877f9e856c5a7da352
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.