소스 검색

Fix two failing tests

JC Brand 1 주 전
부모
커밋
f279218bb9
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 3
      demo/embedded.html
  2. 2 2
      src/plugins/chatview/tests/chatbox.js

+ 3 - 3
demo/embedded.html

@@ -17,9 +17,9 @@
     <!-- *********************************************************************** -->
 
     <link rel="manifest" href="../manifest.json">
-    <link type="text/css" rel="stylesheet" media="screen" href="../dist/converse.min.css" />
-    <script src="https://cdn.conversejs.org/3rdparty/libsignal-protocol.min.js"></script>
-    <script src="../dist/converse.min.js"></script>
+    <link type="text/css" rel="stylesheet" media="screen" href="../dist/converse.css" />
+    <script src="../3rdparty/libsignal-protocol.js"></script>
+    <script src="../dist/converse.js"></script>
 
     <style>
         .converse-container {

+ 2 - 2
src/plugins/chatview/tests/chatbox.js

@@ -527,7 +527,7 @@ describe("Chatboxes", function () {
 
                     const { api } = _converse;
                     await mock.waitUntilDiscoConfirmed(_converse, 'montague.lit', [], ['vcard-temp']);
-                    await u.waitUntil(() => _converse.xmppstatus.vcard.get('fullname'));
+                    await u.waitUntil(() => _converse.xmppstatus.vcard?.get('fullname'));
                     await mock.waitForRoster(_converse, 'current');
                     // Send a message from a different resource
                     const recipient_jid = mock.cur_names[5].replace(/ /g,'.').toLowerCase() + '@montague.lit';
@@ -651,7 +651,7 @@ describe("Chatboxes", function () {
 
                     const { api } = _converse;
                     await mock.waitUntilDiscoConfirmed(_converse, 'montague.lit', [], ['vcard-temp']);
-                    await u.waitUntil(() => _converse.xmppstatus.vcard.get('fullname'));
+                    await u.waitUntil(() => _converse.xmppstatus.vcard?.get('fullname'));
                     await mock.waitForRoster(_converse, 'current');
                     // Send a message from a different resource
                     const recipient_jid = mock.cur_names[5].replace(/ /g,'.').toLowerCase() + '@montague.lit';