updated to use initConverse

This commit is contained in:
JC Brand 2017-02-24 15:11:57 +00:00
parent b15c107e4e
commit e140eb84c8

View File

@ -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 @@
});
});
});
});
}));
});
}));