From e9a8a162fec1b355ccc9361e011881c7c2b24d23 Mon Sep 17 00:00:00 2001
From: Christian Paul <christianp@matrix.org>
Date: Thu, 7 Jan 2021 13:06:50 +0100
Subject: [PATCH] Fix existing tests

---
 test/test_matrixcommandhandler.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/test_matrixcommandhandler.ts b/test/test_matrixcommandhandler.ts
index 9dc34cd..6e51c98 100644
--- a/test/test_matrixcommandhandler.ts
+++ b/test/test_matrixcommandhandler.ts
@@ -48,6 +48,9 @@ function createCH(opts: any = {}, shouldBeJoined = true) {
                 throw new Error("Test failed matrix bridge");
             }
         },
+        RoomCountLimitReached: async () => {
+            return !!opts.roomCountLimitReached;
+        },
         UnbridgeChannel: async () => {
             if (opts.failUnbridge) {
                 throw new Error("Test failed unbridge");
-- 
GitLab