From b931eb3a10147bc9325e798c9f37f83430f26dee Mon Sep 17 00:00:00 2001 From: Miepee Date: Tue, 1 Nov 2022 11:39:45 +0100 Subject: [PATCH] Fix tests --- test/test_matrixeventprocessor.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_matrixeventprocessor.ts b/test/test_matrixeventprocessor.ts index e06fea32..449f4428 100644 --- a/test/test_matrixeventprocessor.ts +++ b/test/test_matrixeventprocessor.ts @@ -453,8 +453,8 @@ describe("MatrixEventProcessor", () => { expect(STATE_EVENT_MSG).to.equal("`@user:localhost` kicked `@user2:localhost` from the room on Matrix."); }); it("Should not echo kicks", async () => { - const config = new DiscordBridgeConfig(); - config.bridge.disableKickNotifications = true; + const bridge = new DiscordBridgeConfigBridge(); + bridge.disableKickNotifications = true; const {processor} = createMatrixEventProcessor(0, bridge); const event = { content: { @@ -510,8 +510,8 @@ describe("MatrixEventProcessor", () => { expect(STATE_EVENT_MSG).to.equal("`@user:localhost` banned `@user2:localhost` from the room on Matrix."); }); it("Should not echo bans", async () => { - const config = new DiscordBridgeConfig(); - config.bridge.disableBanNotifications = true; + const bridge = new DiscordBridgeConfig(); + bridge.disableBanNotifications = true; const {processor} = createMatrixEventProcessor(0, bridge); const event = { content: {