diff options
Diffstat (limited to 'addons/mail/static/tests/helpers/test_utils.js')
| -rw-r--r-- | addons/mail/static/tests/helpers/test_utils.js | 14 |
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; } |
