next.js/packages/next/src/server/normalizers/request/base-path.test.ts
base-path.test.ts12 lines377 B
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()
  })
})
Quest for Codev2.0.0
/
SIGN IN