make sure subwidgets have proper parents

This commit is contained in:
Géry Debongnie
2019-01-25 20:05:31 +01:00
parent 37b275d40e
commit a47a65d333
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -265,6 +265,7 @@ describe("composition", () => {
const widget = new WidgetA(env);
await widget.mount(fixture);
expect(fixture.innerHTML).toBe("<div>Hello<div>world</div></div>");
expect(widget._.children[0]._.parent).toBe(widget);
});
test("t-refs on widget are widgets", async () => {