From a8e4e625f4075892cd5b86b3dbc61b70ace3470d Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 2 Aug 2018 13:36:30 +0200 Subject: [IMP] web: remove useless service name We use the registry keys as name for the services. --- .../static/tests/dashboard_tests.js | 24 +++++++++++++--------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'addons/web_settings_dashboard/static') diff --git a/addons/web_settings_dashboard/static/tests/dashboard_tests.js b/addons/web_settings_dashboard/static/tests/dashboard_tests.js index c96087934d1..ed66ac3ecb2 100644 --- a/addons/web_settings_dashboard/static/tests/dashboard_tests.js +++ b/addons/web_settings_dashboard/static/tests/dashboard_tests.js @@ -88,11 +88,13 @@ QUnit.module('settings_dashboard', function () { } return this._super.apply(this, arguments); }, - services: [NotificationService.extend({ - notify: function (params) { - assert.step(params.type); - } - })], + services: { + notification: NotificationService.extend({ + notify: function (params) { + assert.step(params.type); + } + }), + }, }); // enter an invalid email address to invite @@ -167,11 +169,13 @@ QUnit.module('settings_dashboard', function () { } return this._super.apply(this, arguments); }, - services: [NotificationService.extend({ - notify: function (params) { - assert.step(params.type); - } - })], + services: { + notification: NotificationService.extend({ + notify: function (params) { + assert.step(params.type); + } + }), + }, }); // simulate a copy paste of multiple email addresses -- cgit v1.2.3