From f45b1bfdda5043fbff9ce53b2c3b424ab233e6b5 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 29 Jul 2019 13:18:02 +0100 Subject: [PATCH] Fix StubRoom for react-sdk tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/messages/MessageActionBar.js | 1 - test/test-utils.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/messages/MessageActionBar.js b/src/components/views/messages/MessageActionBar.js index 1f27de0732..6e47846d20 100644 --- a/src/components/views/messages/MessageActionBar.js +++ b/src/components/views/messages/MessageActionBar.js @@ -46,7 +46,6 @@ export default class MessageActionBar extends React.PureComponent { this.props.mxEvent.on("Event.decrypted", this.onDecrypted); const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId()); if (room) { - console.log("DEBUG", room); room.on("RoomMember.powerLevel", this.onPermissionsChange); room.on("RoomMember.membership", this.onPermissionsChange); this.onPermissionsChange(); diff --git a/test/test-utils.js b/test/test-utils.js index 5f78508f46..6dd9158b74 100644 --- a/test/test-utils.js +++ b/test/test-utils.js @@ -259,6 +259,8 @@ export function mkStubRoom(roomId = null) { }, }, setBlacklistUnverifiedDevices: sinon.stub(), + on: sinon.stub(), + removeListener: sinon.stub(), }; }