Skip to content

Commit 4f0c9f6

Browse files
committed
Style tweak
1 parent 6f8ceac commit 4f0c9f6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

modules/__tests__/History-test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ describe('History Mixin', function () {
2121
it('assigns the history to the component instance', function (done) {
2222
const history = createHistory('/')
2323

24-
function assertHistory() {
25-
expect(this.history).toExist()
26-
}
27-
2824
const Component = React.createClass({
2925
mixins: [ History ],
30-
componentWillMount: assertHistory,
26+
componentWillMount() {
27+
expect(this.history).toExist()
28+
},
3129
render() { return null }
3230
})
3331

0 commit comments

Comments
 (0)