rsnext/test/integration/query-with-encoding/pages/newline.js
Joe Haddad eb38d223e6
Test Query String Behavior (#10102)
* Test Query String Behavior

* Test Query String with %

* Test Query String With LF

* Update test

* Consolidate

* Consolidate
2020-01-20 15:16:18 -05:00

15 lines
316 B
JavaScript

import Link from 'next/link'
const Another = () => (
<div>
<Link href="/?another=hello%0A">
<a id="hello-lf">Hello LF</a>
</Link>
<br />
<Link href={{ pathname: '/', query: { complex: 'yes\n' } }}>
<a id="hello-complex">Hello Complex</a>
</Link>
</div>
)
export default Another