From 6d3ae60e402f760f70bfe96dbbc408083f9f20c6 Mon Sep 17 00:00:00 2001
From: Sorunome <mail@sorunome.de>
Date: Fri, 21 Dec 2018 17:56:07 +0100
Subject: [PATCH] fix lint

---
 src/matrixmessageprocessor.ts       |  3 ++-
 test/test_matrixmessageprocessor.ts | 10 +++++-----
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/matrixmessageprocessor.ts b/src/matrixmessageprocessor.ts
index 27dee33..a0a4c55 100644
--- a/src/matrixmessageprocessor.ts
+++ b/src/matrixmessageprocessor.ts
@@ -66,7 +66,8 @@ export class MatrixMessageProcessor {
 
         if (msg.includes("@room") && this.params && this.params.mxClient && this.params.roomId && this.params.userId) {
             // let's check for more complex logic if @room should be replaced
-            const res: IMatrixEvent = await this.params.mxClient.getStateEvent(this.params.roomId, "m.room.power_levels");
+            const res: IMatrixEvent = await this.params.mxClient.getStateEvent(
+                this.params.roomId, "m.room.power_levels");
             if (
                 res && res.users
                 && res.users[this.params.userId] !== undefined
diff --git a/test/test_matrixmessageprocessor.ts b/test/test_matrixmessageprocessor.ts
index 9058709..611496f 100644
--- a/test/test_matrixmessageprocessor.ts
+++ b/test/test_matrixmessageprocessor.ts
@@ -27,7 +27,7 @@ const mxClient = {
             };
         }
         return null;
-    }
+    },
 };
 
 const bot = {
@@ -210,28 +210,28 @@ code
             expect(result).is.equal("test reply");
         });
         it("parses links", async () => {
-            const mp = new MatrixMessageProcessor(bot, opts);
+            const mp = new MatrixMessageProcessor(bot);
             const guild = new MockGuild("1234");
             const msg = getHtmlMessage("<a href=\"http://example.com\">link</a>");
             const result = await mp.FormatMessage(msg, guild as any);
             expect(result).is.equal("[link](http://example.com)");
         });
         it("parses links with same content", async () => {
-            const mp = new MatrixMessageProcessor(bot, opts);
+            const mp = new MatrixMessageProcessor(bot);
             const guild = new MockGuild("1234");
             const msg = getHtmlMessage("<a href=\"http://example.com\">http://example.com</a>");
             const result = await mp.FormatMessage(msg, guild as any);
             expect(result).is.equal("http://example.com");
         });
         it("doesn't discord-escape links", async () => {
-            const mp = new MatrixMessageProcessor(bot, opts);
+            const mp = new MatrixMessageProcessor(bot);
             const guild = new MockGuild("1234");
             const msg = getHtmlMessage("<a href=\"http://example.com/_blah_/\">link</a>");
             const result = await mp.FormatMessage(msg, guild as any);
             expect(result).is.equal("[link](http://example.com/_blah_/)");
         });
         it("doesn't discord-escape links with same content", async () => {
-            const mp = new MatrixMessageProcessor(bot, opts);
+            const mp = new MatrixMessageProcessor(bot);
             const guild = new MockGuild("1234");
             const msg = getHtmlMessage("<a href=\"http://example.com/_blah_/\">http://example.com/_blah_/</a>");
             const result = await mp.FormatMessage(msg, guild as any);
-- 
GitLab