Skip to content

Commit 6dd40bd

Browse files
committed
Fix tests
1 parent 6a4335c commit 6dd40bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_matrixeventprocessor.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ describe("MatrixEventProcessor", () => {
453453
expect(STATE_EVENT_MSG).to.equal("`@user:localhost` kicked `@user2:localhost` from the room on Matrix.");
454454
});
455455
it("Should not echo kicks", async () => {
456-
const config = new DiscordBridgeConfig();
457-
config.bridge.disableKickNotifications = true;
456+
const bridge = new DiscordBridgeConfigBridge();
457+
bridge.disableKickNotifications = true;
458458
const {processor} = createMatrixEventProcessor(0, bridge);
459459
const event = {
460460
content: {
@@ -510,8 +510,8 @@ describe("MatrixEventProcessor", () => {
510510
expect(STATE_EVENT_MSG).to.equal("`@user:localhost` banned `@user2:localhost` from the room on Matrix.");
511511
});
512512
it("Should not echo bans", async () => {
513-
const config = new DiscordBridgeConfig();
514-
config.bridge.disableBanNotifications = true;
513+
const bridge = new DiscordBridgeConfigBridge();
514+
bridge.disableBanNotifications = true;
515515
const {processor} = createMatrixEventProcessor(0, bridge);
516516
const event = {
517517
content: {

0 commit comments

Comments
 (0)