[REF] qweb, component: small code refactoring

This commit is contained in:
Géry Debongnie
2019-05-02 09:47:33 +02:00
parent 9df6c0aede
commit 6350d9598d
4 changed files with 95 additions and 91 deletions
+3 -3
View File
@@ -1088,7 +1088,7 @@ describe("composition", () => {
</div>
`)
);
expect(env.qweb.templates.parent.toString()).toMatchSnapshot();
expect(env.qweb.templates.parent.fn.toString()).toMatchSnapshot();
});
test("sub widgets between t-ifs", async () => {
@@ -1358,7 +1358,7 @@ describe("random stuff/miscellaneous", () => {
const widget = new Parent(env);
await widget.mount(fixture);
expect(env.qweb.templates.parent.toString()).toMatchSnapshot();
expect(env.qweb.templates.parent.fn.toString()).toMatchSnapshot();
});
test("t-props should not be undefined (snapshotting)", async () => {
@@ -1374,7 +1374,7 @@ describe("random stuff/miscellaneous", () => {
const widget = new Parent(env);
await widget.mount(fixture);
expect(env.qweb.templates.parent.toString()).toMatchSnapshot();
expect(env.qweb.templates.parent.fn.toString()).toMatchSnapshot();
});
});