Buckets:
| import { getSegmentValue } from './segment' | |
| describe('getSegmentValue', () => { | |
| it('should support string segment', () => { | |
| expect(getSegmentValue('foo')).toEqual('foo') | |
| }) | |
| it('should support dynamic segment', () => { | |
| expect(getSegmentValue(['slug', 'hello-world', 'd', null])).toEqual( | |
| 'hello-world' | |
| ) | |
| }) | |
| it('should support catch all segment', () => { | |
| expect(getSegmentValue(['slug', 'blog/hello-world', 'c', null])).toEqual( | |
| 'blog/hello-world' | |
| ) | |
| }) | |
| }) | |
Xet Storage Details
- Size:
- 501 Bytes
- Xet hash:
- 42cc19ec3aced17d18cb3d3661683196e3eaeeea4404d939e4ce56e5f3e1769c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.