Buckets:
| import { normalizePagePath } from './normalize-page-path' | |
| describe('normalizePagePath', () => { | |
| it('should normalize the page path', () => { | |
| expect(normalizePagePath('/')).toBe('/index') | |
| }) | |
| it('should normalize the page path with a dynamic route', () => { | |
| expect(normalizePagePath('/[locale]')).toBe('/[locale]') | |
| }) | |
| it('should normalize the page path with a dynamic route and a trailing slash', () => { | |
| expect(normalizePagePath('/[locale]/')).toBe('/[locale]/') | |
| }) | |
| it('should normalize the page with a leading index', () => { | |
| expect(normalizePagePath('/index')).toBe('/index/index') | |
| }) | |
| it('should normalize the page with a leading index and suffix', () => { | |
| expect(normalizePagePath('/index/foo')).toBe('/index/index/foo') | |
| }) | |
| }) | |
Xet Storage Details
- Size:
- 774 Bytes
- Xet hash:
- 1105bf0a19a708c19eaa76204bde05aa446d35f35e68c38a584c129cc77c6866
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.