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 6f8ceac commit 4f0c9f6Copy full SHA for 4f0c9f6
modules/__tests__/History-test.js
@@ -21,13 +21,11 @@ describe('History Mixin', function () {
21
it('assigns the history to the component instance', function (done) {
22
const history = createHistory('/')
23
24
- function assertHistory() {
25
- expect(this.history).toExist()
26
- }
27
-
28
const Component = React.createClass({
29
mixins: [ History ],
30
- componentWillMount: assertHistory,
+ componentWillMount() {
+ expect(this.history).toExist()
+ },
31
render() { return null }
32
})
33
0 commit comments