[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>
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user