summaryrefslogtreecommitdiff
path: root/addons/mail/static/tests/helpers/test_utils.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-02-12 18:34:43 +0100
committerChristophe Simonis <chs@odoo.com>2018-02-12 18:34:43 +0100
commitadeea2a88db4443b2b426877a28bb1471c2f5db1 (patch)
tree2f43fecc9649947d3061e8c482219fa167b3385a /addons/mail/static/tests/helpers/test_utils.js
parent317f5f11112266128ac2292ecfafcd92cda74fd0 (diff)
parent0f02dcb63918228d48df50f2d5805b7fda25c14a (diff)
[MERGE] forward port branch saas-11.2 up to 0f02dcb6391
Diffstat (limited to 'addons/mail/static/tests/helpers/test_utils.js')
-rw-r--r--addons/mail/static/tests/helpers/test_utils.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/addons/mail/static/tests/helpers/test_utils.js b/addons/mail/static/tests/helpers/test_utils.js
index 3d107688537..e0a8a0a13de 100644
--- a/addons/mail/static/tests/helpers/test_utils.js
+++ b/addons/mail/static/tests/helpers/test_utils.js
@@ -17,43 +17,41 @@ var Widget = require('web.Widget');
/**
* Create a mock bus_service, using 'bus' instead of bus.bus
- *
+ *
* @param {web.bus} bus
* @return {AbstractService} the mock bus_service
*/
function createBusService(bus) {
-
var BusService = AbstractService.extend({
name: 'bus_service',
/**
* @override
*/
- init: function (parent) {
+ init: function () {
this._super.apply(this, arguments);
if (!bus) {
bus = new Bus();
}
this.bus = new _.extend(bus, {
/**
- * Do nothing
+ * Do nothing
*/
start_polling: function () {},
});
},
-
+
//--------------------------------------------------------------------------
// Public
//--------------------------------------------------------------------------
-
+
/**
* Get the bus
*/
getBus: function () {
return this.bus;
},
-
});
-
+
return BusService;
}