1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-18 09:22:18 +03:00

fix some tests

This commit is contained in:
Bruno Windels
2019-03-15 09:57:26 +01:00
parent 987a1a00b3
commit 95e61a57bc
2 changed files with 12 additions and 2 deletions

View File

@ -19,6 +19,7 @@ const ReactDOM = require("react-dom");
const ReactTestUtils = require('react-addons-test-utils');
const expect = require('expect');
import Promise from 'bluebird';
import { EventEmitter } from "events";
const sdk = require('matrix-react-sdk');
@ -29,6 +30,7 @@ const Tester = React.createClass({
getInitialState: function() {
return {
tileKeys: [],
resizeNotifier: new EventEmitter(),
};
},
@ -130,7 +132,8 @@ const Tester = React.createClass({
return (
<ScrollPanel ref="sp"
onScroll={this._onScroll}
onFillRequest={this._onFillRequest}>
onFillRequest={this._onFillRequest}
resizeNotifier={this.state.resizeNotifier}>
{ tiles }
</ScrollPanel>
);