[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
-13
View File
@@ -1162,19 +1162,6 @@ describe("slots", () => {
expect(fixture.innerHTML).toBe("<div><span>toph</span></div>");
});
test("slot and (inline) t-esc", async () => {
class Dialog extends Component {
static template = xml`<span><t t-slot="default"/></span>`;
}
class Parent extends Component {
static template = xml`<div><Dialog t-esc="'toph'"/></div>`;
static components = { Dialog };
}
await mount(Parent, fixture);
expect(fixture.innerHTML).toBe("<div><span>toph</span></div>");
});
test("slot and t-call", async () => {
let sokka = xml`<p>sokka</p>`;
class Dialog extends Component {