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. --- addons/barcodes/static/tests/barcode_tests.js | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'addons/barcodes/static/tests') diff --git a/addons/barcodes/static/tests/barcode_tests.js b/addons/barcodes/static/tests/barcode_tests.js index 142fc0feca3..0e2996d8608 100644 --- a/addons/barcodes/static/tests/barcode_tests.js +++ b/addons/barcodes/static/tests/barcode_tests.js @@ -65,11 +65,13 @@ QUnit.test('Button with barcode_trigger', function (assert) { '' + '', res_id: 2, - services: [NotificationService.extend({ - notify: function (params) { - assert.step(params.type); - } - })], + services: { + notification: NotificationService.extend({ + notify: function (params) { + assert.step(params.type); + } + }), + }, intercepts: { execute_action: function (event) { assert.strictEqual(event.data.action_data.name, 'do_something', @@ -512,11 +514,13 @@ QUnit.test('barcode_scanned only trigger error for active view', function (asser '', }, res_id: 1, - services: [NotificationService.extend({ - notify: function (params) { - assert.step(params.type); - } - })], + services: { + notification: NotificationService.extend({ + notify: function (params) { + assert.step(params.type); + } + }), + }, viewOptions: { mode: 'edit', }, -- cgit v1.2.3