Commit 4db2e7ba authored by JC Brand's avatar JC Brand

Allow settings to be passed in first.

parent bab80a32
......@@ -103,7 +103,12 @@
return converse;
}
mock.initConverseWithConnectionSpies = function (spies, func, settings) {
mock.initConverseWithConnectionSpies = function (spies, settings, func) {
if (_.isFunction(settings)) {
var _func = settings;
settings = func;
func = _func;
}
return function () {
return func(initConverse(settings, spies));
};
......
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