From b148368d5b8ba40f03dac15c23224cc2a8cc037e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 24 Jun 2021 13:29:13 +0200 Subject: [PATCH] test different keys do work still --- src/matrix/room/sending/SendQueue.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matrix/room/sending/SendQueue.js b/src/matrix/room/sending/SendQueue.js index 69034ee4..d6b16ac1 100644 --- a/src/matrix/room/sending/SendQueue.js +++ b/src/matrix/room/sending/SendQueue.js @@ -437,8 +437,10 @@ export function tests() { assert.equal(queue.pendingEvents.length, 0); await queue.enqueueEvent("m.reaction", createAnnotation("!target", "🚀"), null, new NullLogItem()); assert.equal(queue.pendingEvents.length, 1); + await queue.enqueueEvent("m.reaction", createAnnotation("!target", "👋"), null, new NullLogItem()); + assert.equal(queue.pendingEvents.length, 2); await queue.enqueueEvent("m.reaction", createAnnotation("!target", "🚀"), null, new NullLogItem()); - assert.equal(queue.pendingEvents.length, 1); + assert.equal(queue.pendingEvents.length, 2); }, }