Refactor tests to understand sendMessage instead of send{Text,Html}Message

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-05-01 13:26:24 +01:00
parent bbce6eea5b
commit f0bd4a54e7
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E
2 changed files with 41 additions and 44 deletions

View file

@ -94,8 +94,7 @@ export function createTestClient() {
},
setAccountData: sinon.stub(),
sendTyping: sinon.stub().returns(Promise.resolve({})),
sendTextMessage: () => Promise.resolve({}),
sendHtmlMessage: () => Promise.resolve({}),
sendMessage: () => Promise.resolve({}),
getSyncState: () => "SYNCING",
generateClientSecret: () => "t35tcl1Ent5ECr3T",
isGuest: () => false,