mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
fix unit test that failed after it finished
crashing the runner on node 16
This commit is contained in:
parent
65929194b0
commit
3243ce2a90
@ -742,7 +742,7 @@ export function tests() {
|
|||||||
const entryA = new EventEntry({ event: withTextBody("foo", createEvent("m.room.message", "event_id_1", alice)) });
|
const entryA = new EventEntry({ event: withTextBody("foo", createEvent("m.room.message", "event_id_1", alice)) });
|
||||||
const entryB = new EventEntry({ event: withReply("event_id_1", createEvent("m.room.message", "event_id_2", bob)), eventIndex: 2 });
|
const entryB = new EventEntry({ event: withReply("event_id_1", createEvent("m.room.message", "event_id_2", bob)), eventIndex: 2 });
|
||||||
await timeline.load(new User(alice), "join", new NullLogItem());
|
await timeline.load(new User(alice), "join", new NullLogItem());
|
||||||
timeline.entries.subscribe({ onAdd: () => null, });
|
timeline.entries.subscribe({ onAdd: () => null, onUpdate: () => null});
|
||||||
timeline.addEntries([entryA, entryB]);
|
timeline.addEntries([entryA, entryB]);
|
||||||
assert.deepEqual(entryB.contextEntry, entryA);
|
assert.deepEqual(entryB.contextEntry, entryA);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user