diff options
| author | Vincent Schippefilt <vsc@odoo.com> | 2019-03-06 14:02:32 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-03-06 20:07:17 +0100 |
| commit | ab56e637b7f97ddcdbcc9baea99ae097e342409c (patch) | |
| tree | 4cb47da9f7ef89b19d18429220a7507470ec12a9 /addons/web/static/tests/core/mixins_tests.js | |
| parent | eeed894fd50e477135e1ac9a82f6e98ce063ab90 (diff) | |
[REF] web: adapt code after jQuery update
Part of task 1896658
Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Christophe Matthieu <chm@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Co-authored-by: David Monjoie <dmo@odoo.com>
Co-authored-by: Martin Geubelle <mge@odoo.com>
Co-authored-by: svs-odoo <svs@odoo.com>
Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
Diffstat (limited to 'addons/web/static/tests/core/mixins_tests.js')
| -rw-r--r-- | addons/web/static/tests/core/mixins_tests.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/web/static/tests/core/mixins_tests.js b/addons/web/static/tests/core/mixins_tests.js index 27c87870876..8c71a2592ce 100644 --- a/addons/web/static/tests/core/mixins_tests.js +++ b/addons/web/static/tests/core/mixins_tests.js @@ -10,6 +10,7 @@ QUnit.module('core', {}, function () { QUnit.test('perform a do_action properly', function (assert) { assert.expect(3); + var done = assert.async(); var widget = new Widget(); @@ -22,9 +23,10 @@ QUnit.module('core', {}, function () { }); widget.do_action('test.some_action_id', {clear_breadcrumbs: true}).then(function () { - assert.step('deferred should have been resolved'); + assert.ok(true, 'deferred should have been resolved'); + widget.destroy(); + done(); }); - widget.destroy(); }); |
