You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
fix tests
This commit is contained in:
@ -26,11 +26,13 @@ const sdk = require('matrix-react-sdk');
|
||||
|
||||
const MessagePanel = sdk.getComponent('structures.MessagePanel');
|
||||
import MatrixClientPeg from '../../../src/MatrixClientPeg';
|
||||
import Matrix from 'matrix-js-sdk';
|
||||
|
||||
const test_utils = require('test-utils');
|
||||
const mockclock = require('mock-clock');
|
||||
|
||||
let client;
|
||||
const room = new Matrix.Room();
|
||||
|
||||
// wrap MessagePanel with a component which provides the MatrixClient in the context.
|
||||
const WrappedMessagePanel = React.createClass({
|
||||
@ -45,7 +47,7 @@ const WrappedMessagePanel = React.createClass({
|
||||
},
|
||||
|
||||
render: function() {
|
||||
return <MessagePanel {...this.props} />;
|
||||
return <MessagePanel room={room} {...this.props} />;
|
||||
},
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user