summaryrefslogtreecommitdiff
path: root/addons/mail/static/tests/helpers/mock_server.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2018-08-02 13:36:30 +0200
committerChristophe Matthieu <chm@odoo.com>2018-08-09 02:31:59 +0200
commita8e4e625f4075892cd5b86b3dbc61b70ace3470d (patch)
tree91e065ca47d5c88f6448162cf27ac3c6c70cfba8 /addons/mail/static/tests/helpers/mock_server.js
parentcf4c4a11b734d65235e22b27550a499611581fff (diff)
[IMP] web: remove useless service name
We use the registry keys as name for the services.
Diffstat (limited to 'addons/mail/static/tests/helpers/mock_server.js')
-rw-r--r--addons/mail/static/tests/helpers/mock_server.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/addons/mail/static/tests/helpers/mock_server.js b/addons/mail/static/tests/helpers/mock_server.js
index b7e5f91c87d..4f396b76df5 100644
--- a/addons/mail/static/tests/helpers/mock_server.js
+++ b/addons/mail/static/tests/helpers/mock_server.js
@@ -21,11 +21,8 @@ MockServer.include({
this.initMessagingData = data.initMessaging;
delete data.initMessaging;
}
- var BusService = _.find(options.services, function (Service) {
- return Service.prototype.name === 'bus_service';
- });
- if (BusService) {
- this.busBus = BusService.prototype.bus;
+ if (options.services && options.services.bus_service) {
+ this.busBus = options.services.bus_service.prototype.bus;
}
this._super.apply(this, arguments);