Kaynağa Gözat

updated to use initConverse

JC Brand 8 yıl önce
ebeveyn
işleme
e140eb84c8
1 değiştirilmiş dosya ile 6 ekleme ve 8 silme
  1. 6 8
      spec/transcripts.js

+ 6 - 8
spec/transcripts.js

@@ -1,9 +1,7 @@
-/*global _converse */
 (function (root, factory) {
     define([
-        "converse_api",
+        "converse-core",
         "mock",
-        "converse_api",
         "test_utils",
         "utils",
         "transcripts"
@@ -49,13 +47,13 @@
     }
 
     return describe("Transcripts of chat logs", function () {
-        beforeEach(function () {
+
+        it("can be used to replay conversations", mock.initConverse(function (_converse) {
+            /*
             test_utils.openChatRoom("discuss", 'conference.conversejs.org', 'jc');
             test_utils.openChatRoom("dummy", 'rooms.localhost', 'jc');
             test_utils.openChatRoom("prosody", 'conference.prosody.im', 'jc');
-        });
-
-        it("can be used to replay conversations", function () {
+            */
             spyOn(_converse, 'areDesktopNotificationsEnabled').andReturn(true);
             _.each(transcripts, function (transcript) {
                 var text = transcript();
@@ -73,6 +71,6 @@
                     });
                 });
             });
-        });
+        }));
     });
 }));