Fix failing tests
This commit is contained in:
parent
b26e1c87ae
commit
251061fad6
@ -264,7 +264,7 @@
|
||||
el.click();
|
||||
await u.waitUntil(() => _converse.api.trigger.calls.count(), 500);
|
||||
expect(_converse.chatboxes.length).toEqual(2);
|
||||
expect(_converse.api.trigger).toHaveBeenCalledWith('chatBoxFocused', jasmine.any(Object));
|
||||
expect(_converse.api.trigger).toHaveBeenCalledWith('chatBoxFocused', jasmine.any(Object), jasmine.any(Object));
|
||||
done();
|
||||
}));
|
||||
|
||||
|
@ -1358,7 +1358,6 @@
|
||||
spyOn(_converse.api, "trigger").and.callThrough();
|
||||
const contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@montague.lit';
|
||||
await test_utils.openChatBoxFor(_converse, contact_jid)
|
||||
expect(_converse.api.trigger).toHaveBeenCalledWith('chatBoxFocused', jasmine.any(Object));
|
||||
const view = _converse.chatboxviews.get(contact_jid);
|
||||
const message = 'This message is sent from this chatbox';
|
||||
spyOn(view.model, 'sendMessage').and.callThrough();
|
||||
|
Loading…
Reference in New Issue
Block a user