[REF] cleanup: prettier

This commit is contained in:
Géry Debongnie
2021-06-10 10:22:30 +02:00
parent d67d295eaa
commit 1a6b26c8c6
2 changed files with 9 additions and 5 deletions
+6 -4
View File
@@ -1134,19 +1134,21 @@ describe("t-slot directive", () => {
}
class UsingTcallInSlotted extends Component {
tcallTemplate = xml`<div class="slot"><Child/></div>`;
tcallTemplate = xml`<div class="slot"><Child/></div>`;
static template = xml`
<div>
<Slotted>
<t t-call="{{ tcallTemplate }}"/>
</Slotted>
</div>`;
static components = { Slotted , Child };
static components = { Slotted, Child };
}
await mount(UsingTcallInSlotted, {target: fixture});
await mount(UsingTcallInSlotted, { target: fixture });
expect(child.__owl__.parent).toBeInstanceOf(Slotted);
expect(fixture.innerHTML).toBe(`<div><div class="slotted"><div class="slot"><div class="child"></div></div></div></div>`);
expect(fixture.innerHTML).toBe(
`<div><div class="slotted"><div class="slot"><div class="child"></div></div></div></div>`
);
});
});