[IMP] component: render does not return a promise anymore

This commit is contained in:
Géry Debongnie
2021-11-29 16:02:51 +01:00
parent 777b2aae5e
commit e946967867
14 changed files with 103 additions and 208 deletions
+2 -1
View File
@@ -291,7 +291,8 @@ describe("list of components", () => {
const parent = await mount(Parent, fixture);
expect((parent.el as HTMLElement).innerHTML).toBe("<div>1</div><div>2</div>");
parent.clist = [2, 1];
await parent.render();
parent.render();
await nextTick();
expect((parent.el as HTMLElement).innerHTML).toBe("<div>2</div><div>1</div>");
expect(childInstances.length).toBe(2);
});