mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +01:00
cleanup
This commit is contained in:
parent
5bea8130f2
commit
0703cf8915
@ -419,6 +419,7 @@ export function tests() {
|
|||||||
content: {},
|
content: {},
|
||||||
relatedTxnId: reactionEntry.id
|
relatedTxnId: reactionEntry.id
|
||||||
}}));
|
}}));
|
||||||
|
// TODO: await nextUpdate here with ListObserver, to ensure entry emits an update when pendingAnnotations changes
|
||||||
await poll(() => timeline.entries.length === 3);
|
await poll(() => timeline.entries.length === 3);
|
||||||
assert.equal(entry.pendingAnnotations.get("👋"), 0);
|
assert.equal(entry.pendingAnnotations.get("👋"), 0);
|
||||||
// 4. cancel redaction
|
// 4. cancel redaction
|
||||||
@ -452,7 +453,6 @@ export function tests() {
|
|||||||
assert.equal(reactionEntry.relation.key, "👋");
|
assert.equal(reactionEntry.relation.key, "👋");
|
||||||
},
|
},
|
||||||
"remote reaction": async assert => {
|
"remote reaction": async assert => {
|
||||||
const storage = await createMockStorage();
|
|
||||||
const messageEntry = new EventEntry({
|
const messageEntry = new EventEntry({
|
||||||
event: withTextBody("hi bob!", createEvent("m.room.message", "!abc", alice)),
|
event: withTextBody("hi bob!", createEvent("m.room.message", "!abc", alice)),
|
||||||
fragmentId: 1, eventIndex: 2, roomId,
|
fragmentId: 1, eventIndex: 2, roomId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user