2
0
JC Brand 7 жил өмнө
parent
commit
d278a02778

+ 1 - 1
CHANGES.md

@@ -4,7 +4,7 @@
 
 ## New Features
 
-- files can now be send via http-file-upload (XEP-0363)
+- files can now be sent via http-file-upload (XEP-0363)
 - mp4 and mp3 files will now be playable directly in chat. 
 
 ## 4.0.0 (Unreleased)

+ 1 - 1
spec/headline.js

@@ -42,7 +42,7 @@
 
         it("will open and display headline messages", mock.initConverseWithPromises(
             null, ['rosterGroupsFetched'], {}, function (done, _converse) {
-  
+
             /* <message from='notify.example.com'
              *          to='romeo@im.example.com'
              *          type='headline'

+ 4 - 2
spec/http-file-upload.js

@@ -23,7 +23,8 @@
                 test_utils.waitUntilDiscoConfirmed(_converse, _converse.bare_jid, [], []).then(function () {
                     test_utils.waitUntil(function () {
                         return _.filter(IQ_stanzas, function (iq) {
-                            return iq.nodeTree.querySelector('iq[to="localhost"] query[xmlns="http://jabber.org/protocol/disco#info"]');
+                            return iq.nodeTree.querySelector(
+                                'iq[to="localhost"] query[xmlns="http://jabber.org/protocol/disco#info"]');
                         }).length > 0;
                     }, 300).then(function () {
                         /* <iq type='result'
@@ -40,7 +41,8 @@
                          *  </iq>
                          */
                         var stanza = _.filter(IQ_stanzas, function (iq) {
-                            return iq.nodeTree.querySelector('iq[to="localhost"] query[xmlns="http://jabber.org/protocol/disco#info"]');
+                            return iq.nodeTree.querySelector(
+                                'iq[to="localhost"] query[xmlns="http://jabber.org/protocol/disco#info"]');
                         })[0];
                         var info_IQ_id = IQ_ids[IQ_stanzas.indexOf(stanza)];