From fd039431bc36d202e10b59d20a7c89958502612f Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 29 Jul 2019 13:50:11 +0100 Subject: [PATCH] put maySendMessage stub on stubRoom in the right place Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- test/test-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-utils.js b/test/test-utils.js index 5459895147..f60cab3bc2 100644 --- a/test/test-utils.js +++ b/test/test-utils.js @@ -247,12 +247,12 @@ export function mkStubRoom(roomId = null) { getVersion: () => '1', shouldUpgradeToVersion: () => null, getMyMembership: () => "join", + maySendMessage: sinon.stub().returns(true), currentState: { getStateEvents: sinon.stub(), mayClientSendStateEvent: sinon.stub().returns(true), maySendStateEvent: sinon.stub().returns(true), maySendEvent: sinon.stub().returns(true), - maySendMessage: sinon.stub().returns(true), members: [], }, tags: {