parent
23e9c48e53
commit
7cc59b9ef3
@ -327,7 +327,7 @@
|
|||||||
|
|
||||||
it("updates device lists based on PEP messages",
|
it("updates device lists based on PEP messages",
|
||||||
mock.initConverseWithPromises(
|
mock.initConverseWithPromises(
|
||||||
null, ['rosterGroupsFetched'], {},
|
null, ['rosterGroupsFetched'], {'allow_non_roster_messaging': true},
|
||||||
function (done, _converse) {
|
function (done, _converse) {
|
||||||
|
|
||||||
test_utils.createContacts(_converse, 'current', 1);
|
test_utils.createContacts(_converse, 'current', 1);
|
||||||
@ -356,6 +356,7 @@
|
|||||||
_converse.connection._dataRecv(test_utils.createRequest(stanza));
|
_converse.connection._dataRecv(test_utils.createRequest(stanza));
|
||||||
return test_utils.waitUntil(() => _converse.omemo_store);
|
return test_utils.waitUntil(() => _converse.omemo_store);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
expect(_converse.chatboxes.length).toBe(1);
|
||||||
expect(_converse.devicelists.length).toBe(1);
|
expect(_converse.devicelists.length).toBe(1);
|
||||||
const devicelist = _converse.devicelists.get(_converse.bare_jid);
|
const devicelist = _converse.devicelists.get(_converse.bare_jid);
|
||||||
expect(devicelist.devices.length).toBe(2);
|
expect(devicelist.devices.length).toBe(2);
|
||||||
|
Loading…
Reference in New Issue
Block a user