rsnext/test/unit/router-add-base-path.unit.test.js
2020-11-10 12:25:50 -05:00

9 lines
278 B
JavaScript

/* eslint-env jest */
import { addBasePath } from 'next/dist/next-server/lib/router/router'
describe('router addBasePath', () => {
it('should add basePath correctly when no basePath', () => {
const result = addBasePath('/hello')
expect(result).toBe('/hello')
})
})