mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX][BREAKING] t-esc on component is not supported anymore
This commit is contained in:
committed by
Aaron Bohy
parent
db93ef08ff
commit
1761af9c24
@@ -1082,14 +1082,7 @@ describe("qweb parser", () => {
|
||||
});
|
||||
|
||||
test("component with t-esc", async () => {
|
||||
expect(parse(`<MyComponent t-esc="someValue"/>`)).toEqual({
|
||||
type: ASTType.TComponent,
|
||||
name: "MyComponent",
|
||||
dynamicProps: null,
|
||||
props: {},
|
||||
isDynamic: false,
|
||||
slots: { default: { defaultValue: "", expr: "someValue", type: ASTType.TEsc } },
|
||||
});
|
||||
expect(() => parse(`<MyComponent t-esc="someValue"/>`)).toThrow("t-esc is not supported on Component nodes");
|
||||
});
|
||||
|
||||
test("component with t-call", async () => {
|
||||
|
||||
Reference in New Issue
Block a user