next.js/test/unit/router-add-base-path.test.ts
router-add-base-path.test.ts10 lines269 B
/* eslint-env jest */
import { addBasePath } from 'next/dist/client/add-base-path'

describe('router addBasePath', () => {
  it('should add basePath correctly when no basePath', () => {
    const result = addBasePath('/hello')
    expect(result).toBe('/hello')
  })
})
Quest for Codev2.0.0
/
SIGN IN