mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] t-out: allow expressions evaluating as number
This commit is contained in:
committed by
Sam Degueldre
parent
1fc88f626f
commit
a3111eb9ca
@@ -27,6 +27,11 @@ describe("t-out", () => {
|
||||
expect(renderToString(template)).toBe("<span>ok</span>");
|
||||
});
|
||||
|
||||
test("number literal", () => {
|
||||
const template = `<span><t t-out="1"/></span>`;
|
||||
expect(renderToString(template)).toBe("<span>1</span>");
|
||||
});
|
||||
|
||||
test("literal, no outside html element", () => {
|
||||
const template = `<t t-out="'ok'"/>`;
|
||||
expect(renderToString(template)).toBe("ok");
|
||||
|
||||
Reference in New Issue
Block a user