mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
fix lint in tests
This commit is contained in:
parent
8092713faa
commit
9f99cf4b1e
@ -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 New Issue
Block a user