update to use new API based on js-sdk PR input
This commit is contained in:
parent
3c7864a7ad
commit
4aef352a5c
6 changed files with 16 additions and 8 deletions
|
@ -59,14 +59,17 @@ describe('TimelinePanel', function() {
|
|||
test_utils.beforeEach(this);
|
||||
sandbox = test_utils.stubClient(sandbox);
|
||||
|
||||
timeline = new jssdk.EventTimeline(ROOM_ID);
|
||||
room = sinon.createStubInstance(jssdk.Room);
|
||||
room.roomId = ROOM_ID;
|
||||
|
||||
timelineSet = sinon.createStubInstance(jssdk.EventTimelineSet);
|
||||
timelineSet.getLiveTimeline.returns(timeline);
|
||||
timelineSet.getPendingEvents.returns([]);
|
||||
timelineSet.room = room;
|
||||
|
||||
timeline = new jssdk.EventTimeline(timelineSet);
|
||||
|
||||
timelineSet.getLiveTimeline.returns(timeline);
|
||||
|
||||
client = peg.get();
|
||||
client.credentials = {userId: USER_ID};
|
||||
|
||||
|
@ -149,7 +152,7 @@ describe('TimelinePanel', function() {
|
|||
timeline.addEvent(ev);
|
||||
panel.onRoomTimeline(ev, room, false, false, {
|
||||
liveEvent: true,
|
||||
timelineSet: timelineSet,
|
||||
timeline: timeline,
|
||||
});
|
||||
|
||||
// that won't make much difference, because we don't paginate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue