put maySendMessage stub on stubRoom in the right place
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
ac66388a7f
commit
fd039431bc
1 changed files with 1 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue