1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

unbreak mocks in tests

This commit is contained in:
Matthew Hodgson
2016-09-12 15:52:10 +01:00
parent 85b2e5d758
commit 8a848deddc
2 changed files with 6 additions and 1 deletions

View File

@@ -16,8 +16,11 @@ describe("EventTimeline", function() {
beforeEach(function() {
utils.beforeEach(this);
// XXX: this is a horrid hack; should use sinon or something instead
// XXX: this is a horrid hack; should use sinon or something instead to mock
var timelineSet = { room: { roomId: roomId }};
timelineSet.room.getUnfilteredTimelineSet = function() { return timelineSet; };
timeline = new EventTimeline(timelineSet);
});