[FIX][BREAKING] t-esc on component is not supported anymore

This commit is contained in:
Lucas Perais (lpe)
2021-11-15 15:00:46 +01:00
committed by Aaron Bohy
parent db93ef08ff
commit 1761af9c24
4 changed files with 4 additions and 62 deletions
+1 -8
View File
@@ -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 () => {