unbreak tests
This commit is contained in:
parent
8f75bce29e
commit
334564c814
2 changed files with 3 additions and 2 deletions
|
@ -92,7 +92,7 @@ var TimelinePanel = React.createClass({
|
||||||
timelineCap: React.PropTypes.number,
|
timelineCap: React.PropTypes.number,
|
||||||
|
|
||||||
// classname to use for the messagepanel
|
// classname to use for the messagepanel
|
||||||
className: React.PropTypes.string.isRequired,
|
className: React.PropTypes.string,
|
||||||
},
|
},
|
||||||
|
|
||||||
statics: {
|
statics: {
|
||||||
|
@ -106,6 +106,7 @@ var TimelinePanel = React.createClass({
|
||||||
getDefaultProps: function() {
|
getDefaultProps: function() {
|
||||||
return {
|
return {
|
||||||
timelineCap: 250,
|
timelineCap: 250,
|
||||||
|
className: 'mx_RoomView_messagePanel',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -61,10 +61,10 @@ describe('TimelinePanel', function() {
|
||||||
|
|
||||||
timeline = new jssdk.EventTimeline(ROOM_ID);
|
timeline = new jssdk.EventTimeline(ROOM_ID);
|
||||||
room = sinon.createStubInstance(jssdk.Room);
|
room = sinon.createStubInstance(jssdk.Room);
|
||||||
room.getPendingEvents.returns([]);
|
|
||||||
|
|
||||||
timelineSet = sinon.createStubInstance(jssdk.EventTimelineSet);
|
timelineSet = sinon.createStubInstance(jssdk.EventTimelineSet);
|
||||||
timelineSet.getLiveTimeline.returns(timeline);
|
timelineSet.getLiveTimeline.returns(timeline);
|
||||||
|
timelineSet.getPendingEvents.returns([]);
|
||||||
timelineSet.room = room;
|
timelineSet.room = room;
|
||||||
|
|
||||||
client = peg.get();
|
client = peg.get();
|
||||||
|
|
Loading…
Reference in a new issue