Commit b5e7bd56 authored by JC Brand's avatar JC Brand

Move roster tests into their own module

parent f5904806
This diff is collapsed.
......@@ -46,6 +46,7 @@ var specs = [
"spec/mam",
"spec/otr",
"spec/controlbox",
"spec/roster",
"spec/chatbox",
"spec/chatroom",
"spec/minchats",
......
......@@ -228,7 +228,7 @@
/* Create grouped contacts
*/
var i=0, j=0;
_.each(_.keys(mock.groups), $.proxy(function (name) {
_.each(_.keys(mock.groups), function (name) {
j = i;
for (i=j; i<j+mock.groups[name]; i++) {
converse.roster.create({
......@@ -239,7 +239,7 @@
fullname: mock.cur_names[i]
});
}
}, converse));
});
};
utils.createChatMessage = function (_converse, sender_jid, message) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment