Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee committed Nov 1, 2022
1 parent 6a4335c commit b931eb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_matrixeventprocessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit b931eb3

Please sign in to comment.