From 7cc59b9ef39ce2e6797281036ccf2aab053928fd Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 10 Oct 2018 20:12:29 +0200 Subject: [PATCH] Check in test that headliness box is not created. Updates #1221 --- spec/omemo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/omemo.js b/spec/omemo.js index 621f8bf56..2a7368d8e 100644 --- a/spec/omemo.js +++ b/spec/omemo.js @@ -327,7 +327,7 @@ it("updates device lists based on PEP messages", mock.initConverseWithPromises( - null, ['rosterGroupsFetched'], {}, + null, ['rosterGroupsFetched'], {'allow_non_roster_messaging': true}, function (done, _converse) { test_utils.createContacts(_converse, 'current', 1); @@ -356,6 +356,7 @@ _converse.connection._dataRecv(test_utils.createRequest(stanza)); return test_utils.waitUntil(() => _converse.omemo_store); }).then(() => { + expect(_converse.chatboxes.length).toBe(1); expect(_converse.devicelists.length).toBe(1); const devicelist = _converse.devicelists.get(_converse.bare_jid); expect(devicelist.devices.length).toBe(2);