File size: 405 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 |
import { ReadonlyURLSearchParams } from './navigation'
describe('next/navigation', () => {
it('should be able to construct URLSearchParams from ReadonlyURLSearchParams', () => {
const searchParams = new URLSearchParams('?foo=test&bar=test')
const readonlySearchParams = new ReadonlyURLSearchParams(searchParams)
expect(() => new URLSearchParams(readonlySearchParams)).not.toThrow()
})
})
|