[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
committed by Aaron Bohy
parent 8a1ac13975
commit eceb3e6280
14 changed files with 103 additions and 208 deletions
+6 -3
View File
@@ -106,7 +106,8 @@ describe("basics", () => {
expect(fixture.innerHTML).toBe("<span>1</span>");
component.value = 2;
await component.render();
component.render();
await nextTick();
expect(fixture.innerHTML).toBe("<span>2</span>");
});
@@ -123,7 +124,8 @@ describe("basics", () => {
expect(fixture.innerHTML).toBe("onetwothree");
component.items = ["two", "three", "one"];
await component.render();
component.render();
await nextTick();
expect(fixture.innerHTML).toBe("twothreeone");
});
@@ -258,7 +260,8 @@ describe("basics", () => {
const test = await mount(Test, fixture);
expect(fixture.innerHTML).toBe("<div>3</div>");
test.value = 5;
await test.render();
test.render();
await nextTick();
expect(fixture.innerHTML).toBe("<div>5</div>");
});