You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-16 22:01:54 +03:00
fix some tests
This commit is contained in:
@ -21,6 +21,7 @@ const ReactDOM = require("react-dom");
|
||||
const TestUtils = require('react-addons-test-utils');
|
||||
const expect = require('expect');
|
||||
import sinon from 'sinon';
|
||||
import { EventEmitter } from "events";
|
||||
|
||||
const sdk = require('matrix-react-sdk');
|
||||
|
||||
@ -46,8 +47,14 @@ const WrappedMessagePanel = React.createClass({
|
||||
};
|
||||
},
|
||||
|
||||
getInitialState: function() {
|
||||
return {
|
||||
resizeNotifier: new EventEmitter(),
|
||||
};
|
||||
},
|
||||
|
||||
render: function() {
|
||||
return <MessagePanel room={room} {...this.props} />;
|
||||
return <MessagePanel room={room} {...this.props} resizeNotifier={this.state.resizeNotifier} />;
|
||||
},
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user