Download next.js/packages/next/src/shared/lib/router/utils/app-paths.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/shared/lib/router/utils/app-paths.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/shared/lib/router/utils/app-paths.test.ts
-
curl -L -o app-paths.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/shared/lib/router/utils/app-paths.test.ts
334 Bytes
| import { normalizeRscURL } from './app-paths' | |
| describe('normalizeRscPath', () => { | |
| it('should normalize url with .rsc', () => { | |
| expect(normalizeRscURL('/test.rsc')).toBe('/test') | |
| }) | |
| it('should normalize url with .rsc and searchparams', () => { | |
| expect(normalizeRscURL('/test.rsc?abc=def')).toBe('/test?abc=def') | |
| }) | |
| }) | |