We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42891a2 commit e7c6f3dCopy full SHA for e7c6f3d
modules/__tests__/Link-test.js
@@ -289,7 +289,7 @@ describe('A <Link>', function () {
289
// just here to make sure click handlers don't prevent it from happening
290
}
291
render() {
292
- return <Link to="/hello" hash="#world" onClick={(e) => this.handleClick(e)}>Link</Link>
+ return <Link to="/hello" hash="#world" query={{ how: 'are' }} state={{ you: 'doing?' }} onClick={(e) => this.handleClick(e)}>Link</Link>
293
294
295
@@ -302,7 +302,7 @@ describe('A <Link>', function () {
302
},
303
function () {
304
expect(node.innerHTML).toMatch(/Hello/)
305
- expect(spy).toHaveBeenCalledWith(undefined, '/hello#world')
+ expect(spy).toHaveBeenCalledWith({ you: 'doing?' }, '/hello#world?how=are')
306
307
]
308
0 commit comments