Download next.js/packages/next/src/server/normalizers/request/base-path.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/server/normalizers/request/base-path.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/server/normalizers/request/base-path.test.ts
-
curl -L -o base-path.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/server/normalizers/request/base-path.test.ts
377 Bytes
| import { BasePathPathnameNormalizer } from './base-path' | |
| describe('BasePathPathnameNormalizer', () => { | |
| it('should throw when provided with a blank basePath', () => { | |
| expect(() => new BasePathPathnameNormalizer('')).toThrow() | |
| }) | |
| it('should throw when provided with a basePath of "/"', () => { | |
| expect(() => new BasePathPathnameNormalizer('/')).toThrow() | |
| }) | |
| }) | |