[REF] component: large cleanup of concurrency branch

We remove here old comments, add some tests and documentation, and in
general, make sure the state of the code is in a good shape

part of #330
This commit is contained in:
Géry Debongnie
2019-10-24 21:20:52 +02:00
parent 9c5cad15c1
commit 3c38bbc076
14 changed files with 530 additions and 442 deletions
+3 -4
View File
@@ -363,13 +363,12 @@ describe("default props", () => {
}
class App extends Widget {
static template = xml`<div><TestWidget/></div>`;
static components = { TestWidget };
static template = xml`<div><TestWidget/></div>`;
static components = { TestWidget };
}
const w = new App(env, {});
await w.mount(fixture);
expect(fixture.innerHTML).toBe('<div><span>heyhey</span></div>')
expect(fixture.innerHTML).toBe("<div><span>heyhey</span></div>");
});
});