Skip to content

Commit 72ed6e7

Browse files
committed
Fix issues after cherry-picking withRouter() to the next branch
1 parent 3002ec3 commit 72ed6e7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

modules/__tests__/withRouter-test.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@ import { render, unmountComponentAtNode } from 'react-dom'
44
import createHistory from '../createMemoryHistory'
55
import Route from '../Route'
66
import Router from '../Router'
7-
import routerShape from '../PropTypes'
7+
import { routerShape } from '../PropTypes'
88
import withRouter from '../withRouter'
99

1010
describe('withRouter', function () {
1111
class App extends Component {
12-
propTypes: {
13-
router: routerShape.isRequired
14-
}
1512
render() {
1613
expect(this.props.router).toExist()
1714
return <h1>App</h1>
1815
}
1916
}
2017

18+
App.propTypes = {
19+
router: routerShape.isRequired
20+
}
21+
2122
let node
2223
beforeEach(function () {
2324
node = document.createElement('div')

0 commit comments

Comments
 (0)