[REF] component: refactor fiber creation methods

This commit is contained in:
Géry Debongnie
2019-09-20 11:08:16 +02:00
parent 7a49b9d94e
commit caa63628dc
4 changed files with 14 additions and 28 deletions
+1 -1
View File
@@ -334,7 +334,7 @@ describe("default props", () => {
const w = new TestWidget(env, { p: 1 });
await w.mount(fixture);
expect(fixture.innerHTML).toMatchSnapshot();
const fiber = w.__createRootFiber(false);
const fiber = w.__createFiber(false, undefined, undefined, undefined);
await w.__updateProps({}, fiber);
await w.render();
expect(w.props.p).toBe(4);