diff options
| author | Vincent Schippefilt <vsc@odoo.com> | 2019-12-03 09:38:16 +0000 |
|---|---|---|
| committer | Vincent Schippefilt <vsc@odoo.com> | 2019-12-03 09:38:16 +0000 |
| commit | 4bcad6d546addc8a141ce7702346859e17a4cbdb (patch) | |
| tree | 1b5d975a21037734f54964e25c156e702c8ae13c /addons/web/static/tests/core | |
| parent | ee15b8461d5b98d8711012d0d58fe8dbee2c733e (diff) | |
[FIX] web: fix incorrect test of py utils
Before this fix, a QUnit test was wrong (didn't parse)
After this fix, the test actually works and tests something.
closes odoo/odoo#41257
X-original-commit: 3818a7f0df754717a7379dc8341729b508a166be
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/tests/core')
| -rw-r--r-- | addons/web/static/tests/core/py_utils_tests.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/tests/core/py_utils_tests.js b/addons/web/static/tests/core/py_utils_tests.js index 5f8b026689d..40cbe5de726 100644 --- a/addons/web/static/tests/core/py_utils_tests.js +++ b/addons/web/static/tests/core/py_utils_tests.js @@ -1220,7 +1220,9 @@ QUnit.module('core', function () { assert.checkAST("not a in b", "not prefix with expression"); }); - QUnit("conditional expression", function (assert) { + QUnit.test("conditional expression", function (assert) { + assert.expect(2); + assert.checkAST("1 if a else 2"); assert.checkAST("[] if a else 2"); }); |
