summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/tests/field_html_tests.js
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2019-02-15 14:36:39 +0000
committerRaphael Collet <rco@odoo.com>2019-03-22 16:42:08 +0000
commit1ced3bfca457ac50845637bcd42a8e53bd7f088d (patch)
treeab337f64040089777f509f24dc08fd08de57baeb /addons/web_editor/static/tests/field_html_tests.js
parent579965adc5cf6db67e5dc3b3c6dfd9162b171e90 (diff)
[FIX] *: pass context in kwargs in rpc calls
Diffstat (limited to 'addons/web_editor/static/tests/field_html_tests.js')
-rw-r--r--addons/web_editor/static/tests/field_html_tests.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_editor/static/tests/field_html_tests.js b/addons/web_editor/static/tests/field_html_tests.js
index 31855ef9ff7..fdecf126051 100644
--- a/addons/web_editor/static/tests/field_html_tests.js
+++ b/addons/web_editor/static/tests/field_html_tests.js
@@ -804,7 +804,7 @@ QUnit.test('save immediately before iframe is rendered in edit mode', async func
res_id: 1,
mockRPC: function (route, args) {
if (route === '/web/dataset/call_button' && args.method === 'translate_fields') {
- assert.deepEqual(args.args, ['note.note', 1, 'body', {}], "should call 'call_button' route");
+ assert.deepEqual(args.args, ['note.note', 1, 'body'], "should call 'call_button' route");
return Promise.resolve();
}
return this._super.apply(this, arguments);
@@ -840,7 +840,7 @@ QUnit.test('save immediately before iframe is rendered in edit mode', async func
res_id: 1,
mockRPC: function (route, args) {
if (route === '/web/dataset/call_button' && args.method === 'translate_fields') {
- assert.deepEqual(args.args, ['note.note', 1, 'body', {}], "should call 'call_button' route");
+ assert.deepEqual(args.args, ['note.note', 1, 'body'], "should call 'call_button' route");
return Promise.resolve();
}
return this._super.apply(this, arguments);