forked from mystiq/hydrogen-web
fix lint in tests
This commit is contained in:
parent
8092713faa
commit
9f99cf4b1e
1 changed files with 2 additions and 2 deletions
|
@ -407,7 +407,7 @@ export function tests() {
|
|||
const timeline = new Timeline({roomId, storage, closeCallback: () => {},
|
||||
fragmentIdComparer, pendingEvents, clock: new MockClock()});
|
||||
await timeline.load(new User(bob), "join", new NullLogItem());
|
||||
const subscription = timeline.entries.subscribe(noopHandler);
|
||||
timeline.entries.subscribe(noopHandler);
|
||||
const event = withTextBody("hi bob!", withSender(alice, createEvent("m.room.message", "!abc")));
|
||||
timeline.addOrReplaceEntries([new EventEntry({event, fragmentId: 1, eventIndex: 2}, fragmentIdComparer)]);
|
||||
let entry = getIndexFromIterable(timeline.entries, 0);
|
||||
|
@ -448,7 +448,7 @@ export function tests() {
|
|||
const timeline = new Timeline({roomId, storage, closeCallback: () => {},
|
||||
fragmentIdComparer, pendingEvents, clock: new MockClock()});
|
||||
await timeline.load(new User(bob), "join", new NullLogItem());
|
||||
const subscription = timeline.entries.subscribe(noopHandler);
|
||||
timeline.entries.subscribe(noopHandler);
|
||||
// 3. add message to timeline
|
||||
timeline.addOrReplaceEntries([messageEntry]);
|
||||
const entry = getIndexFromIterable(timeline.entries, 0);
|
||||
|
|
Loading…
Reference in a new issue